tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Asensio <rasen...@gmail.com>
Subject Re: weird memory
Date Wed, 02 Mar 2011 03:19:14 GMT
yes, you were right, its overriding what I put with this

tomcat6   7788  4.1 21.7 759436 182340 ?       Sl   Mar01   0:30
/usr/lib/jvm/java-6-openjdk/bin/java
-Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties
-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
-Djava.net.preferIPv4Stack=true
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath
/usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6
-Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp
org.apache.catalina.startup.Bootstrap start
root     19026  0.0  0.0   6020   664 pts/1    S+   00:06   0:00 grep java

now.. I found is setting Xmx128m in 2 places,
/etc/tomcat/defaults.template
/etc/tomcat/skel/bin/setenv.sh

I replaced for my desired amount, restarted everything.. but nothing
changed. Any clue about other file being involved on this ?

thanks for the response.


---------------------------------------------------------------
http://www.rodrigoasensio.com



On Tue, Mar 1, 2011 at 10:20, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Rodrigo,
>
> On 3/1/2011 9:17 AM, Rodrigo Asensio wrote:
> > Debian 5
> > Tomcat 6 with authbind as described here
> > http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/
> >
> > <http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/>now..
> I'm
> > starting the tomcat with Xmx700m and the /mananger/html shows only 12x as
> > max
>
> What does "12x max" mean?
>
> > Free memory: 33.84 MB Total memory: 81.06 MB Max memory: 125.93 MB
> >
> > But in the server, the java process (using top) shows that it consumes up
> to
> > 700m, which is OK.
>
> Top shows more than the heap size, which is what you are setting when
> you use the -Xm settings.
>
> > But.. the past few days it started to fail when memory
> > eater request run (never happened before)
> >
> > Is tomcat running really with 128mb instead my 700m ? Does anyone have an
> > idea about this issue ?
>
> Looks like it. Try this:
>
> $ ps aux | grep catalina
>
> This should show you the complete command-line for launching Tomcat,
> including all JVM settings provided on the command-line. For instance,
> mine looks like this:
>
> cschultz 11436  0.0  1.1 244100 83280 pts/3    Sl   Feb01  16:58
> /usr/bin/java -Dnop -Xmx64M
> - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> - -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
> -
>
> -Djava.endorsed.dirs=/home/cschultz/projects/apache-tomcat-7.0.x/trunk/output/build/endorsed
> - -classpath
>
> /home/cschultz/projects/apache-tomcat-7.0.x/trunk/output/build/bin/bootstrap.jar:/home/cschultz/projects/apache-tomcat-7.0.x/trunk/output/build/bin/tomcat-juli.jar
> - -Dcatalina.base=/home/cschultz/.webapps/multipart/8275
> -
>
> -Dcatalina.home=/home/cschultz/projects/apache-tomcat-7.0.x/trunk/output/build
> - -Djava.io.tmpdir=/home/cschultz/.webapps/multipart/8275/temp
> org.apache.catalina.startup.Bootstrap start
>
> You can see that I have specified "-Xmx64M" somewhere in my
> configuration. Check to see if your command-line has that type of
> configuration in there. If it's not there, then you have not configured
> Tomcat as you think you have.
>
> Are you using Debian's Tomcat 6 package, or are you running one
> downloaded directly from the Apache web site? If you are using Debian's
> package, there are a lot of config files and scripts that run that might
> be either overriding your settings, or you may not be editing the right
> file.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1tDqAACgkQ9CaO5/Lv0PAqmACeMvWUAYmrZNhkgOUqicRa/xEu
> +CUAn0UqG3Rw3MjOqJonrcEO/anE9PmT
> =qaqJ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message