I am about to download and run JMP (Java Memory Profiler) to test my
application for memory leaks to prevent this from happening again.
However, I'm searching and searching on how to fix it for now.
What I have come across is adding the following flags to the java
execution command: -ms64M
in catalina.sh
JAVA_OPTS=-Xms64m -Xmx512m
hope that helps.
peter
Denise Mangano [EMAIL PROTECTED] wrote:
I am about to download and run JMP (Java Memory Profiler) to test my
application for memory leaks to prevent this from happening again.
However, I'm searching and searching on how to
Most JVMs limit the number of concurrent threads that can be created.
That will be the OutOfMemoryError. As to why it is happening: Have you
tweaked the server.xml settings for min/maxProcessors? Have you upped
things like ulimit before the power outage and are now reset?
Denise Mangano wrote:
, Inc.
914-747-1200
-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 9:53 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
in catalina.sh
JAVA_OPTS=-Xms64m -Xmx512m
hope that helps.
peter
It looks to me like something screwed up your system.
The main cause is not within tomcat.
The important part of the traceback is this:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
?
Thanks again!
Denise
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 9:57 AM
To: Tomcat Users List
Subject: Re: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Most JVMs limit the number of concurrent threads that can be created
.
Denise
-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 9:58 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
It looks to me like something screwed up your system.
The main cause
[mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:59 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I did not change ulimit at all... Actually I did not change
anything in
server.xml besides making the configurations for mod_jk
, September 19, 2003 10:05 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I think it's not the right time to think about optimizing.
If tomcat isn't even starting, I don't think that the
problem is a 'normal' memory leak especially if the server
has
of that).
-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 9:05 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I think it's not the right time to think about optimizing.
If tomcat isn't even
?
(Maybe there is some other process missbehaving)
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 4:02 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Ralph - thank you for your
, 2003 10:13 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
May setting these values will help:
ulimit -s 2048
export LD_ASSUME_KERNEL=2.2.5
Either put them in the environment of the user that starts tomcat or put
it in the startscript of tomcat
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Thank you everyone for your responses. So, you are saying that the
problem is not with Tomcat. Are you suggesting that the
problem is with
the server itself (Linux) or possibly with the JDK?
I tried
Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Yes, that is my assumption.
The processlist looks uncritical.
What about the memory usage ?
(I'm not familiar with red hat, 'top' or 'cat /proc/meminfo' should
work)
-Original Message-
From: Denise
RH7.3 was EXT2 filesystem I think? (you probably did this) but I'd do a
complete FSCHK on all disks.
(1) Test some other Java applications...are they working? If not
reinstall the RPM for the JRE you are using...try again.
(2) load up another copy of Tomcat in your user account? Does this
Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
From what I can tell memory usage looks ok as well... According to the
output there is still memory free...
total:used:free: shared: buffers: cached:
Mem: 261988352 114282496 1477058560
Some other recommendations:
- Try to diable as much as possible in server.xml and web.xml.
- Try to run tomcat standalone.
Just to see if it starts. If it starts, try to find out
which feature caused the error.
-
To
]
Sent: Friday, September 19, 2003 10:43 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
RH7.3 was EXT2 filesystem I think? (you probably did this) but I'd do a
complete FSCHK on all disks.
(1) Test some other Java applications...are they working
.
914-747-1200
-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 10:43 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
RH7.3 was EXT2 filesystem I think? (you probably did
-
From: Timothy Halloran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 10:43 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
RH7.3 was EXT2 filesystem I think? (you probably did this)
but I'd do a
complete FSCHK on all disks
again so much for everyone's posts.
Denise
-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
On Fri, 2003-09-19 at 11:18, Denise
config allowed this to happen...
Thanks again to everyone for their help.
Denise
-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Ok, here is something interesting
: Friday, September 19, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I did as you all suggested, and installed a second instance of tomcat.
Without changing anything in the configuration, and using the default
example webapps everything worked
Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I think it might be safe to assume the problem was with the user I was
running tomcat as, if that makes any sense at all??? After I did what
I
said below, I realized that I was testing this out as root, and I
should
try
PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I think it might be safe to assume the problem was with the user I was
running tomcat as, if that makes any sense at all??? After I did what
I
said below, I realized that I was testing this out as root
.
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Fri 9/19/2003 11:33 AM
To: Tomcat Users List
Cc:
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
I think it might be safe
26 matches
Mail list logo