tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Breno Jacinto" <br...@freeunix.com.br>
Subject Re: Hundreds of Instances
Date Tue, 04 Dec 2007 18:20:53 GMT
Hi Christopher,


> You could turn on the AccessLogValve and then simply look at the log
> files. Another option would be to write your own Valve or Filter and
> record the accesses yourself, but the AccessLogValve is already there. I
> think it can easily be configured to emit "standard" httpd-style logs so
> you can use tools webalizer to graph the usage over time and stuff.

    I found a post in the past with a tutorial on how to do this
second option. I'll try it out, thanks!

>
> > JAVA_OPTS="-server -Xms128m -Xmx384m
> > -Djava.library.path=/usr/src/dbxml-2.2.13/install/lib/"
>
> Really? From your other message, you make it look like Java is taking
> something like 1GB of memory. Sure, the JVM adds some overhead to the
> heap size you configured, but it shouldn't be more than 5% or 10%...
> nothing like 200%.

   No, I meant Tomcat is taking it! Over time, as I showed in the
"free -m" output. Also, when I look at "top", the java process is the
first one in memory consumption.


> If you really are only serving 10 users per minute, attaching a memory
> profiler isn't going to significantly impact your performance (unless
> you're running with an old VM which requires disabling the JIT in order
> to instrument the VM). You said you're running 1.5.0, which should allow
> this type of instrumentation.

    I tried JProfiler sometime ago, and it worked fine. Too bad it's
not free software. I'll look for others.


cheers,

> - -chris

-- 
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message