473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

JVM memory problem on Linux

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
2 5854
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ian | last post by:
Hi all, I have a problem. I have an application which needs to work with a lot of data, but not all at the same time. It is arranged as a set of objects, each with lots of data that is created...
5
by: Eddie | last post by:
I have a MySQL-server running Innodb. We have installed ~ 2GB of memory in the server. In spite of this MySQL keeps crashing due to out-of-memory errors. The server is a dual xeon i686 running...
6
by: hauger | last post by:
(DB2 V.8.1) Hi @ll, when i start my DB2 and my application connects and makes some SQL Tests my system is running out of memory (UNITED LINUX 1.0) goes slow and needs very very long time to...
5
by: Jeong-Gun Lee | last post by:
I'm writing a code of writing a value to a specific memory address. ================================================================= #include <stdio.h> int main() { long air; long...
35
by: Alex Martelli | last post by:
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is...
7
by: vansky | last post by:
Dear all, im porting a WIN APP to LINUX, and face some problems that r hard for me to solve, could u dear guys give me some hands? i'd like to reimplement the following funcs or replace them...
18
by: MajorSetback | last post by:
I am using the Redhat version of Linux and GNU C++. It is not clear to me whether this is a Linux issue or a C++ issue. I do not have this problem running the same program on Windows but...
8
by: Nehil | last post by:
When a process is started three segments are created : 1) Text. 2) Stack. 3) Data. The size of First two is fixed and their upperlimit is fixed by the compiler. (Plz correct if i'm wrong) Now...
2
by: thomasolsen | last post by:
Hi, I have a java program running on Linux Debian using jre 1.6 (I have tried under 1.5 with excatly the same results). As the program is running as a service I have been watching the memory usage...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.