By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,514 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,514 IT Pros & Developers. It's quick & easy.

JVM memory problem on Linux

P: n/a
Hello

I have encountered a problem using tomcat, linux and ssl.
My problem seem to be a JVM memory deallocation problem on Linux.

This is my configuration:
OS: Redhat7.2
Tomcat: 4.0
Jdk: 1.3.1_07

I have a servlet that does a post https connexion with a certificat
client and server.
When I execute 200 (or more) this servlet, we can see that the memory
increase.
After 200 calls consecutive, the memory has increased of 20M and
doesn't decrease.

After 1000 calls, the server doesn't have enough memory and tomcat
crash.

I have upgrated the jdk toV1.4.1 and tomcat to V5.0, and have the same
problem.
I have add tomcat option like "-Xmx" without succes.

When I do this test with Windows2000, the memory increase but decrease
after.
It seem to be link with linux.

I have post a message on Tomcat-Forum, i have this response:"It could
be a JVM bug on Linux or
another configuration problem. Since the problem occurs under platform
A while
not on platform B, it would be hard to blame tomcat for a memory
leak."

Have you any idea ? It's a configuration problem ?
Do you know how to configure Linux Kernel ??

Any help will be welcome.
Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
bo***********@free.fr wrote in message news:<cc**************************@posting.google. com>...
Hello

I have encountered a problem using tomcat, linux and ssl.
My problem seem to be a JVM memory deallocation problem on Linux.

This is my configuration:
OS: Redhat7.2
Tomcat: 4.0
Jdk: 1.3.1_07

I have a servlet that does a post https connexion with a certificat
client and server.
When I execute 200 (or more) this servlet, we can see that the memory
increase.
After 200 calls consecutive, the memory has increased of 20M and
doesn't decrease.

After 1000 calls, the server doesn't have enough memory and tomcat
crash.

I have upgrated the jdk toV1.4.1 and tomcat to V5.0, and have the same
problem.
I have add tomcat option like "-Xmx" without succes.

When I do this test with Windows2000, the memory increase but decrease
after.
It seem to be link with linux.

I have post a message on Tomcat-Forum, i have this response:"It could
be a JVM bug on Linux or
another configuration problem. Since the problem occurs under platform
A while
not on platform B, it would be hard to blame tomcat for a memory
leak."

Have you any idea ? It's a configuration problem ?
Do you know how to configure Linux Kernel ??

Any help will be welcome.
Thanks.


Are you using Apache and the Apache HTTPD connector with tomcat, or is
tomcat running on port 80? If you are using a connector, try
eliminating it to see if that is where the problem lies.

---
Jared Dykstra
http://www.bork.org/~jared
Jul 17 '05 #2

P: n/a
dy******@hotmail.com (Jared Dykstra) wrote in message news:<ba*************************@posting.google.c om>...
bo***********@free.fr wrote in message news:<cc**************************@posting.google. com>...
Hello

I have encountered a problem using tomcat, linux and ssl.
My problem seem to be a JVM memory deallocation problem on Linux.

This is my configuration:
OS: Redhat7.2
Tomcat: 4.0
Jdk: 1.3.1_07

I have a servlet that does a post https connexion with a certificat
client and server.
When I execute 200 (or more) this servlet, we can see that the memory
increase.
After 200 calls consecutive, the memory has increased of 20M and
doesn't decrease.

After 1000 calls, the server doesn't have enough memory and tomcat
crash.

I have upgrated the jdk toV1.4.1 and tomcat to V5.0, and have the same
problem.
I have add tomcat option like "-Xmx" without succes.

When I do this test with Windows2000, the memory increase but decrease
after.
It seem to be link with linux.

I have post a message on Tomcat-Forum, i have this response:"It could
be a JVM bug on Linux or
another configuration problem. Since the problem occurs under platform
A while
not on platform B, it would be hard to blame tomcat for a memory
leak."

Have you any idea ? It's a configuration problem ?
Do you know how to configure Linux Kernel ??

Any help will be welcome.
Thanks.


Are you using Apache and the Apache HTTPD connector with tomcat, or is
tomcat running on port 80? If you are using a connector, try
eliminating it to see if that is where the problem lies.

---
Jared Dykstra
http://www.bork.org/~jared

No i don't use Apache.
Yesterday finally, i though i have found the solution.
I have test my application with success on a Mandrake (Kernel Linux
2.4.8) instead of Redhat 7.2 (Linux Kernel 2.4.7-10) and i have modify
the file /etc/ld.so.conf to include a java path where there is many
librairies.

So today i'm going to upgrading my Linux Kernel on Redhat to see the
impact.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.