-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 5/30/2011 12:24 PM, André Warnier wrote:
> Note also that running out of Heap space does not necessarily mean that
> your classes have leaks. It can also mean that they are just using
> memory to a point where your allocated Heap space is s
tp11Protocol.java:166)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
Exception in thread
"ContainerBackgroundProcessor[StandardEngine[Catalina]]"
java.lang.
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: Exception in thread ""http-bio-8080"-exec-9"
> java.lang.OutOfMemoryError: Java heap space
> I apologise (a little bit) for my original answer
You shouldn't apologize; the OP has still not p
that this is a bug in tomcat 7. Let me know in case you can make
any sense out of the trace.
===
Exception in thread ""http-bio-8080"-exec-12" java.lang.OutOfMemor
You are kidding us, right ?
But just in case you are not, what is the part which you do not understand in
"java.lang.OutOfMemoryError: Java heap space".
?
http://lmgtfy.com/?q=java.lang.OutOfMemoryError:%20Java%20heap%20space
sunil.sheva...@wipro.com wrote:
Hi,
I am gettin
Hi,
I am getting an error as follows
"Exception in thread ""http-bio-8080"-exec-9"
java.lang.OutOfMemoryError: Java heap space".
I am running my jsp application on a windows machine with Tomcat 7.0.8
Any pointers?
Thanks in advance,
Sunil.
Please do
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
Another correction to the code:
On 10/8/2009 4:22 PM, Christopher Schultz wrote:
> public static class SoftReferenceSessionWrapper
> implements HttpSession
> {
Remember to implement getValue and putValue to call getAttribute and
setAttr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
A correction to my code:
On 10/8/2009 4:22 PM, Christopher Schultz wrote:
> public class SoftReferenceFilter
> implements Filter
> {
This class needs two additional methods:
public void init(FilterChain chain) { }
public void des
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
On 10/8/2009 12:12 PM, Joe Hansen wrote:
> I will now think twice before I store anything in the session and
> will make sure I remove no longer used objects from the HTTP
> Session.
It's always a good goal to limit your session size, but it's n
> From: Joe Hansen [mailto:joe.hansen...@gmail.com]
> Subject: Re: java.lang.OutOfMemoryError: Java heap space
>
> Is the use of SoftReference popular?
You'll find it as the underlying mechanism of many cache managers, since it
automatically adapts reasonably well to whate
> Yup, it looks like you have more of your application objects taking up
> memory than the tickets you were worried about.
So True! We are right now designing and developing our next generation
of websites and this experience will surely come handy. I will now
think twice before I store anything i
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: java.lang.OutOfMemoryError: Java heap space
>
> There are even techniques that will allow your session objects to
> expire when memory gets tight (which is super cool IMO).
To put a name on the above
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
On 10/7/2009 8:40 PM, Joe Hansen wrote:
> WoW! "jmap" was a great command to learn Chris! Thank you so much!
Yeah, it's great as a poor-man's memory profiler. On the other hand, I
haven't seen a big-time memory profiler offer such a simple view
WoW! "jmap" was a great command to learn Chris! Thank you so much!
I generated a histogram of the Objects in the java heap (while things
were stable) and here's what I got:
Object Histogram:
SizeCount Class description
---
149989048
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
On 10/6/2009 3:44 PM, Joe Hansen wrote:
> I did not check the CPU usage when the issue happened. I just checked
> the web application logs and found that first there was an
> OutOfMemoryError, followed by MySQL errors when
> TWFotoSetListDAO.get
2009/10/6 Joe Hansen :
> Andre, you are right. Memory is cheap. However, the machine has 8GB of
> memory already. I am thinking that it should be sufficient.
You might wish to dedicate more of that 8 Gbyte to Java, though. It
depends on the performance characteristics of your application - looks
I changed the session-timeout for the CAS webapp to 1 hour and
restarted Apache/Tomcat to see if that changes anything. If the issue
manifests again, I will surely check the memory and cpu usage using
the top command.
Rainer, I somewhat doubt that getAllFotosets() is causing the problem.
Because I
Rainer Jung wrote:
On 06.10.2009 21:44, Joe Hansen wrote:
...
It seems your application is CPU heavy. Either the data objects handled
are to heavy weight (maybe some user having huge Fotoset or Email list)
or the request rate is simply to large. Is the CPU saturated during the
problems?
I wou
s having extremely large social data. So once they hit the
server it went OOME.
> Thanks,
> Joe
Regards,
Rainer
> 2009 Oct 06 / 10:48:43 ERROR -
> [org.apache.catalina.core.ContainerBase] : Exception invoking periodic
> operation:
> java.lang.OutOfMemoryError: Java heap space
&
ation:
java.lang.OutOfMemoryError: Java heap space
2009 Oct 06 / 10:48:43 FATAL - [tw.conn.TWConnectionManager] :
com.mysql.jdbc.CommunicationsException: Communications link failure
due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
On 06.10.2009 19:44, Joe Hansen wrote:
I will only comment the threads for the AJP pool. Everything else seems
not relevant:
Dump 1:
20 threads connected to Apache, waiting for the next request
3 threads idle in the pool
1 thread waiting for the next connection
0 threads working on requests
D
There were 29 httpd processes running when the websites crashed.
One thing that was clear from the thread dumps was there were lots of
entries for org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner:
Starting cleaning of expired tickets from ticket registry at ...
Does that indicat
Rainer,
I spoke to soon! As I suspected, the problem isn't fixed yet and the
websites crashed again. This time I took three thread dumps at the
time tomcat was down. Here they are: http://pastebin.com/m2a7e1198
I will learn from your previous analysis of the thread dumps and I try
to understand w
Rainer,
Thanks for looking at those long thread dumps for me!!
I am sorry. I did NOT take these dumps at the right time (i.e. when
Tomcat was inundated with requests and couldn't cope with the load).
After I increased the heap size to 512MB (from 64MB default), I am not
getting the OutOfMemoryErr
On 05.10.2009 18:58, Joe Hansen wrote:
> Thank you so much for your tips, Rainer!
>
> The websites went down yet again. Increasing the java heap size took
> care of the OutOfMemoryError, but the number of httpd processes keep
> increasing until the websites crash. I haven't added any new code in
>
public web server yourself.
>>
>> If you don't want to post in public, you can also mail it to me, I will
>> post the result, in case I find something relevant.
>>
>> Regards,
>>
>> Rainer
>>
>>> On Sat, Oct 3, 2009 at 12:24 PM, Rainer Jung
On 05.10.2009 22:04, André Warnier wrote:
> André Warnier wrote:
> ...
> and still wants to add something :
>
> - a new KeepAlive connection is made from the browser to Apache (httpd).
> - then a request comes in on that connection, and it happens to be one
> that gets forwarded to Tomcat. So a m
Andre, Thanks for pointing out the high KeepAliveTimeout value in the
config file. I have read the docs and have changed it to 5 seconds
(which is the default).
I am hoping that Rainer could find out from the thread dump where the
requests are getting stuck, so that I can put this issue to bed.
T
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: java.lang.OutOfMemoryError: Java heap space
>
> The bottleneck would be in Tomcat, but it would show up at the
> httpd level.
The bottleneck might also be in something external to Tomcat, such as a
database or so
André Warnier wrote:
...
and still wants to add something :
- a new KeepAlive connection is made from the browser to Apache (httpd).
- then a request comes in on that connection, and it happens to be one
that gets forwarded to Tomcat. So a mod_jk connection is made to
Tomcat, Tomcat allocates
Joe Hansen wrote:
Thank you for the reply, Andre.
I now understand how setting KeepAlive to On would improve the
performance of a website (The Apache manual says that a 50% increase
in throughput could be expected). So I changed the KeepAlive to On and
restarted the server.
Now wait.
You shoul
Thank you for the reply, Andre.
I now understand how setting KeepAlive to On would improve the
performance of a website (The Apache manual says that a 50% increase
in throughput could be expected). So I changed the KeepAlive to On and
restarted the server.
I however wonder if this will fix the is
Joe Hansen wrote:
Rainer,
Here are the KeepAlive values in httpd.conf:
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimout 15
Well, since you have "KeepAlive Off", the other 2 do not matter.
But as such, it means that each request of each browser is going to
create a new connection to the
Rainer,
Here are the KeepAlive values in httpd.conf:
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimout 15
Thanks,
Joe
> What are your KeepAlive* settings ?
>
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
F
not have a public web server yourself.
>
> If you don't want to post in public, you can also mail it to me, I will
> post the result, in case I find something relevant.
>
> Regards,
>
> Rainer
>
>> On Sat, Oct 3, 2009 at 12:24 PM, Rainer Jung wrote:
>>>
Joe Hansen wrote:
I found the following error message in the Apache logs:
[Sat Oct 03 04:10:49 2009] [error] server reached MaxClients setting,
consider raising the MaxClients setting
Here's a snippet from the httpd.conf, which deals with MaxClients.
StartServers 8
MinSpareServers5
Ma
levant.
Regards,
Rainer
> On Sat, Oct 3, 2009 at 12:24 PM, Rainer Jung wrote:
>> On 03.10.2009 20:07, Joe Hansen wrote:
>>> Hey All,
>>>
>>> I get this error (java.lang.OutOfMemoryError: Java heap space) after
>>> my Apache 2.0/Tomcat 5.5/mod_jk ins
be able to please tell me what should I be
>> looking for within this long thread dump?
>>
>> Thanks again, Rainer :)
>>
>> Joe
>>
>> On Sat, Oct 3, 2009 at 12:24 PM, Rainer Jung wrote:
>>> On 03.10.2009 20:07, Joe Hansen wrote:
>>>&g
>> On 03.10.2009 20:07, Joe Hansen wrote:
>>> Hey All,
>>>
>>> I get this error (java.lang.OutOfMemoryError: Java heap space) after
>>> my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
>>> for a few hours. This problem started just since
;>
>> I get this error (java.lang.OutOfMemoryError: Java heap space) after
>> my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
>> for a few hours. This problem started just since two days. Never had
>> this issue before!
>>
>> I have also notic
On 03.10.2009 20:07, Joe Hansen wrote:
> Hey All,
>
> I get this error (java.lang.OutOfMemoryError: Java heap space) after
> my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
> for a few hours. This problem started just since two days. Never had
> this issue b
Hey All,
I get this error (java.lang.OutOfMemoryError: Java heap space) after
my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
for a few hours. This problem started just since two days. Never had
this issue before!
I have also noticed that as soon as I startup the server, 9
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stefan,
Stefan Rainer wrote:
> we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM
> 1.5.0_11-b03 which is mainly used as application server for (Axis-based)
> SOAP Services.
>
> From time to time our Tomcat blows up to use almost
> From: Stefan Rainer [mailto:[EMAIL PROTECTED]
> Subject: AW: IOException while loading persisted sessions /
> java.lang.OutOfMemoryError: Java heap space
>
> Is there any possibiliy in Tomcat 5.0.28 to turn off
> session-persistence?
First, you should be aware that 5.0.28 is n
hricht-
Von: André Warnier [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 01. Dezember 2008 11:47
An: Tomcat Users List
Betreff: Re: IOException while loading persisted sessions /
java.lang.OutOfMemoryError: Java heap space
Sorry, I was so shocked by the last info about 64 MB, that I missed wha
persistant sessions in our
applications.
??
Thanks, Stefan
-Ursprüngliche Nachricht-
Von: André Warnier [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 01. Dezember 2008 11:47
An: Tomcat Users List
Betreff: Re: IOException while loading persisted sessions /
java.lang.OutOfMemoryError: Java
Sorry, I was so shocked by the last info about 64 MB, that I missed what
you wrote about the physical machine...
Stefan Rainer wrote:
Hello,
we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM
1.5.0_11-b03 which is mainly used as application server for (Axis-based)
SOAP Services
Stefan Rainer wrote:
[...]
SEVERE: An exception or error occurred in the container during the request
processing
java.lang.OutOfMemoryError: Java heap space
Exception in thread "http-16302-Processor151" java.lang.OutOfMemoryError:
Java heap space
Extract from configuration / status,
of Tomcat is not possible and the following lines
can be found in stdout.log:
SEVERE: An exception or error occurred in the container during the request
processing
java.lang.OutOfMemoryError: Java heap space
Exception in thread "http-16302-Processor151" java.lang.OutOfMemoryError:
Java h
experiencing issues with a Tomcat server. Everyday we get
the following error:
java.lang.OutOfMemoryError: Java heap space
This machine runs tomcat with 2 webapps and some java based cronjobs.
I start tomcat with the following java options: -Xms128m -Xmx512m
Tomcat Version
Apache Tomcat
> From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED]
> Subject: java.lang.OutOfMemoryError: Java heap space
>
> What could be my problem
Your application has a memory leak (or you might be running out of
PermGen space).
> where should I look next ?
http://tomcat.apache.org/
Hello,
I have been experiencing issues with a Tomcat server. Everyday we get
the following error:
java.lang.OutOfMemoryError: Java heap space
This machine runs tomcat with 2 webapps and some java based cronjobs.
I start tomcat with the following java options: -Xms128m -Xmx512m
Tomcat Version
52 matches
Mail list logo