Why don't you find someone who understands memory usage for your
operating system and have them explain the output of your commands to
you.

You have 700+MB being used as file cache. Your system is under no memory
pressure.

Your app is slow because

1)      It's compiling JSPs, and this takes some overhead on the first
hit.

OR

2)      You are hitting a database and not using connection pooling.
This can kill performance.

OR

3)      Your application is badly written.



-----Original Message-----
From: software [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 27, 2004 1:35 PM
To: Tomcat Users List
Subject: Re: Help tomcat problem with memory


If  i have only two java proccess of 141 MB and 55 MB why my memory is 
over 90% of the utilization and the application working slowly or not 
working, when the users try to get access using the webserver in this 
server. i can't understand this problem...thnaks

Thanks a lot for you help
Fabian

software wrote:

> Hi this  the statemens that i posted in the catalina.sh file
> JAVA_HOME=/usr/java/j2sdk1.4.0 ; export JAVA_HOME
> CATALINA_HOME=/usr/local/tomcat1 ; export CATALINA_HOME
> JAVA_OPST="-server -Xms30m -Xmx40m -Dfile.encoding=ISO-8859-1"
> CATALINA_OPTS="-Xms30m -Xmx40m"
>
> This the output of the top command and both tomcats has been installed

> in the same server
>
> 1:22pm  up 21 days,  5:36,  6 users,  load average: 0.17, 0.23, 0.28
> 220 processes: 218 sleeping, 2 running, 0 zombie, 0 stopped
> CPU0 states:  9.5% user,  4.0% system,  0.0% nice, 85.5% idle
> CPU1 states:  7.4% user,  8.5% system,  0.4% nice, 83.3% idle
> Mem:  1030580K av, 1019220K used,   11360K free,       0K shrd,   
> 92348K buff
> Swap: 2096376K av,   58748K used, 2037628K free                  
> 706776K cached
>
>  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> 23447 root      25   0 86252  84M 18864 S     0.0  8.3   0:02 java
> 23461 root      15   0 86252  84M 18864 S     0.0  8.3   0:00 java
> 23462 root      15   0 86252  84M 18864 S     0.0  8.3   0:03 java
> 23463 root      15   0 86252  84M 18864 S     0.0  8.3   0:00 java
> 23464 root      15   0 86252  84M 18864 S     0.0  8.3   0:00 java
> 23474 root      15   0 86252  84M 18864 S     0.5  8.3   0:03 java
> 23475 root      20   0 86252  84M 18864 S     0.0  8.3   0:00 java
> 23476 root      20   0 86252  84M 18864 S     0.0  8.3   0:00 java
>
>
> Ralph Einfeldt wrote:
>
>> To what value did you set -Xms, -Xmm ?
>> Can you post the statement that sets the values ?
>> (Have seen to much typos in the past)
>> How much memory has your box ?
>>
>> What says the cpu load ?
>>
>> Can you post the head of the top output
>> hat shows the overall memory usage ?
>>
>> Are both tomcat instances on the same server ?
>>
>> Unless you have less than ~150 MB RAM I wouldn't expect that the 
>> memory usage is the problem if
>> each tomcat has it's own server, if they share the same server the 
>> box would need rougly 300 MB (Depending on how much memory is used by

>> other processes)
>>
>> Remember that all threads of the same vm share their memory.
>>
>>  
>>
>>> -----Original Message-----
>>> From: software [mailto:[EMAIL PROTECTED]
>>> Sent: Friday, February 27, 2004 6:07 PM
>>> To: Tomcat Users List
>>> Subject: Re: Help tomcat problem with memory
>>> Importance: High
>>>
>>>
>>> Yes i've configured the Tomcat environment -Xms, -Xmm but i think it

>>> doesn't work, because it's consume the server memory until 145 Mb 
>>> per process i need to limit the number of java proccess and the 
>>> memory that they consume on my Linux Red Hat 7.3  server
>>>
>>> thanks a lot
>>> fabian
>>>
>>> Ralph Einfeldt wrote:
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>  
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to