You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 颜燕 <gi...@hotmail.com> on 2007/09/25 07:26:17 UTC

tomcat5.1 out of memory for swap space not released!



I am a Chinese and English is not well,but I will try my best to express myself.I have HP-UX operation system with JDK1.5 and sybase.But after tomcat5.0 running for some times ,it would out of memory.The tomcat5.0 process continuously allocated swap space but not released it.So when swap space was insufficient,tomcat out of memory and shutdown!Below is some information:=============================================================================================tomcat startup script parameters: JAVA_OPTS="-Xms1001m -Xmx1001m -XX:MaxPermSize=800m -Dfile.encoding=GBK"=============================================================================================out of memory log in cataline.out:2007-08-29 17:38:07.283 (Pagination.java:68)] DEBUG - render Id = pagination  Exception java.lang.OutOfMemoryError: requested 74856 bytes for GrET* in /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/utilities/growableArray.cpp. Out of swap space?Possible causes:    - not enough swap space left
 , or    - kernel parameter MAXDSIZ is very small. Out of memory while reading in symbol table of /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl( 0)  0xc5c88264     [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]( 1)  0xc5c241d0     [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]=============================================================================================Hp Unix Server hardware information :CPU:1GHz*2;memory:4G;=============================================================================================Please give me an idea in this situation! And please help me make tomcat process release swap space?yanyan
_________________________________________________________________
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/

Re: tomcat5.1 out of memory for swap space not released!

Posted by JacquiYan <gi...@hotmail.com>.
Dear Mark:
How about Tomcat 6.0?The lastest version is 6.0.x.Had the memory leaks been
fixed in Tomcat6.0? 


Mark Thomas-15 wrote:
> 
> Tomcat 5.0.x has some memory leaks but as far as I recall they were
> mostly related to context reload.
> 
> If you are reloading your app, I'd suggst an upgrade to the latest
> 5.5.x. If you are not reloading, then your app probably has a memory
> leak. I'd suggest using a profiler such as YourKit to try and track it
> down.
> 
> Mark
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12873719
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by Mark Thomas <ma...@apache.org>.
Tomcat 5.0.x has some memory leaks but as far as I recall they were
mostly related to context reload.

If you are reloading your app, I'd suggst an upgrade to the latest
5.5.x. If you are not reloading, then your app probably has a memory
leak. I'd suggest using a profiler such as YourKit to try and track it down.

Mark

---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by Jiansen Niu <ao...@gmail.com>.
I have been using Tomcat 6.0 since it was released and I would say that it
is much better
that Tomcat 5.x.  As addressed in its release document, besides support
Servlet 2.5 and
JSP2.1, Tomcat 6.0 made following improvements upon Tomcat 5.5:

   - Memory usage optimizations
   - Advanced IO capabilities
   - Refactored clustering

Not sure whether you turned on Security Manager for you Tomcat 5.0, as I
know there is
a memory leak related defect for Tomcat 5.0 when Security Manager is turned
on and has
been fixed since Tomcat 5.5.3 (Tomcat 6.0 has it fixed too). There are other
memory leaks
related defects that have been fixed since Tomcat 5.0, please refer to bug
report for more
details.

Make sure you have a up to date JDK when you using Tomcat 6.0 since there
are some
NIO send file related bugs in this release for Linux based systems, or you
can disable
send file behavior in the Connector if you JDK is not up to date.


Jiansen Niu






On 9/25/07, JacquiYan <gi...@hotmail.com> wrote:
>
>
> Dear Mark:
> How about Tomcat 6.0?The lastest version is 6.0.Had the memory leaks been
> fixed in Tomcat6.0?And further more,is tomcat6.0 a standy version?
>
>
>
> Mark Thomas-15 wrote:
> >
> > Tomcat 5.0.x has some memory leaks but as far as I recall they were
> > mostly related to context reload.
> >
> > If you are reloading your app, I'd suggst an upgrade to the latest
> > 5.5.x. If you are not reloading, then your app probably has a memory
> > leak. I'd suggest using a profiler such as YourKit to try and track it
> > down.
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12873626
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>

Re: tomcat5.1 out of memory for swap space not released!

Posted by JacquiYan <gi...@hotmail.com>.
How about Tomcat 6.0?Had the memory leaks been fixed in Tomcat6.0?


Mark Thomas-15 wrote:
> 
> Tomcat 5.0.x has some memory leaks but as far as I recall they were
> mostly related to context reload.
> 
> If you are reloading your app, I'd suggst an upgrade to the latest
> 5.5.x. If you are not reloading, then your app probably has a memory
> leak. I'd suggest using a profiler such as YourKit to try and track it
> down.
> 
> Mark
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12873626
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by JacquiYan <gi...@hotmail.com>.
Dear Mark:
How about Tomcat 6.0?The lastest version is 6.0.Had the memory leaks been
fixed in Tomcat6.0?And further more,is tomcat6.0 a standy version?



Mark Thomas-15 wrote:
> 
> Tomcat 5.0.x has some memory leaks but as far as I recall they were
> mostly related to context reload.
> 
> If you are reloading your app, I'd suggst an upgrade to the latest
> 5.5.x. If you are not reloading, then your app probably has a memory
> leak. I'd suggest using a profiler such as YourKit to try and track it
> down.
> 
> Mark
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12873626
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by JacquiYan <gi...@hotmail.com>.
Dear Mark:
How about Tomcat 6.0?The lastest version is 6.0.Had the memory leaks been
fixed in Tomcat6.0?And further more,is tomcat6.0 a standy version?


Mark Thomas-15 wrote:
> 
> Tomcat 5.0.x has some memory leaks but as far as I recall they were
> mostly related to context reload.
> 
> If you are reloading your app, I'd suggst an upgrade to the latest
> 5.5.x. If you are not reloading, then your app probably has a memory
> leak. I'd suggest using a profiler such as YourKit to try and track it
> down.
> 
> Mark
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12873626
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by Mark Thomas <ma...@apache.org>.
Tomcat 5.0.x has some memory leaks but as far as I recall they were
mostly related to context reload.

If you are reloading your app, I'd suggst an upgrade to the latest
5.5.x. If you are not reloading, then your app probably has a memory
leak. I'd suggest using a profiler such as YourKit to try and track it down.

Mark

---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by JacquiYan <gi...@hotmail.com>.
Dear  Rainer

The memory properties are below.

xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx 
Physical Memory:         4097.7 MB                                xx x  
  xx xxReal Memory:                                                      xx
x  
  xx xx  Active:                381082.7 KB                              xx
x  
  xx xx  Total:                 405445.6 KB                              xx
x  
  xx xxVirtual Memory:                                                   xx
x  
  xx xx  Active:                2973307.5 KB                             xx
x  
  xx xx  Total:                 3074865.0 KB                             xx
x  
  xx xxFree Memory Pages:       490468 at 4 KB/page                      xx
x  
  xx xxSwap Space:                                                       xx
x  
  xx xx  Avail:                 8192 MB                                  xx
x  
  xx xx  Used:                  1309 MB                                 
xxvx  
  xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
xx xx xx 

There are not other big memory consumers.The tomcat5.0.28 consumed more and
more swap space but not released it!It is the deadly reason!


Rainer Jung-3 wrote:
> 
> You configured your JVM to use 1GB of memory plus 800MB for perm space. 
> This only makes sense, if your machine has that much memory. As far as I 
> know, perm adds to the heap. You system has 4 GB of memory. Are there 
> other big memory consumers there? Can you check the size of the process?
> 
> Regards,
> 
> Rainer
> 
>> I am a Chinese and English is not well,but I will try my best to
>> express myself.I have HP-UX operation system with JDK1.5 and
>> sybase.But after tomcat5.0 running for some times ,it would out of
>> memory.The tomcat5.0 process continuously allocated swap space but
>> not released it.So when swap space was insufficient,tomcat out of
>> memory and shutdown!Below is some
>> information:=============================================================================================tomcat
>> startup script parameters: JAVA_OPTS="-Xms1001m -Xmx1001m
>> -XX:MaxPermSize=800m
>> -Dfile.encoding=GBK"=============================================================================================out
>> of memory log in cataline.out:2007-08-29 17:38:07.283
>> (Pagination.java:68)] DEBUG - render Id = pagination  Exception
>> java.lang.OutOfMemoryError: requested 74856 bytes for GrET* in
>> /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/utilities/growableArray.cpp.
>> Out of swap space?Possible causes:    - not enough swap space left ,
>> or    - kernel parameter MAXDSIZ is very small. Out of memory while
>> reading in symbol table of
>> /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl( 0)  0xc5c88264
>> [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]( 1)  0xc5c241d0
>> [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]=============================================================================================Hp
>> Unix Server hardware information
>> :CPU:1GHz*2;memory:4G;=============================================================================================Please
>> give me an idea in this situation! And please help me make tomcat
>> process release swap space?yanyan 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat5.1-out-of-memory-for-swap-space-not-released%21-tf4513476.html#a12874655
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: tomcat5.1 out of memory for swap space not released!

Posted by Rainer Jung <ra...@kippdata.de>.
You configured your JVM to use 1GB of memory plus 800MB for perm space. 
This only makes sense, if your machine has that much memory. As far as I 
know, perm adds to the heap. You system has 4 GB of memory. Are there 
other big memory consumers there? Can you check the size of the process?

Regards,

Rainer

> I am a Chinese and English is not well,but I will try my best to
> express myself.I have HP-UX operation system with JDK1.5 and
> sybase.But after tomcat5.0 running for some times ,it would out of
> memory.The tomcat5.0 process continuously allocated swap space but
> not released it.So when swap space was insufficient,tomcat out of
> memory and shutdown!Below is some
> information:=============================================================================================tomcat
> startup script parameters: JAVA_OPTS="-Xms1001m -Xmx1001m
> -XX:MaxPermSize=800m
> -Dfile.encoding=GBK"=============================================================================================out
> of memory log in cataline.out:2007-08-29 17:38:07.283
> (Pagination.java:68)] DEBUG - render Id = pagination  Exception
> java.lang.OutOfMemoryError: requested 74856 bytes for GrET* in
> /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/utilities/growableArray.cpp.
> Out of swap space?Possible causes:    - not enough swap space left ,
> or    - kernel parameter MAXDSIZ is very small. Out of memory while
> reading in symbol table of
> /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl( 0)  0xc5c88264
> [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]( 1)  0xc5c241d0
> [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]=============================================================================================Hp
> Unix Server hardware information
> :CPU:1GHz*2;memory:4G;=============================================================================================Please
> give me an idea in this situation! And please help me make tomcat
> process release swap space?yanyan 

---------------------------------------------------------------------
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