Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E78996A69 for ; Mon, 30 May 2011 16:24:55 +0000 (UTC) Received: (qmail 65197 invoked by uid 500); 30 May 2011 16:24:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65096 invoked by uid 500); 30 May 2011 16:24:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 65087 invoked by uid 99); 30 May 2011 16:24:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 16:24:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 16:24:46 +0000 Received: from [192.168.245.129] (p549E0F2E.dip0.t-ipconnect.de [84.158.15.46]) by tor.combios.es (Postfix) with ESMTPA id BF7FF2260DB for ; Mon, 30 May 2011 18:24:24 +0200 (CEST) Message-ID: <4DE3C4AB.1000802@ice-sa.com> Date: Mon, 30 May 2011 18:24:11 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Exception in thread ""http-bio-8080"-exec-9" java.lang.OutOfMemoryError: Java heap space References: <4DE3A1C4.8060302@ice-sa.com> <4DE3BF58.7020806@ice-sa.com> In-Reply-To: <4DE3BF58.7020806@ice-sa.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit By the way, in addition to the details below, you may want to also indicate with what Heap size you are running Tomcat. I suppose that the IBM Heap analyser you are using would tell you that. Otherwise, if you are running Tomcat as a Windows Service, use the GUI application (tomcat7w.exe) to examine the Java JVM options tab. 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 simply not sufficient. Starting Tomcat with a Heap of 64M and starting 1000 request threads simultaneously would do it nicely also. Looking at the stack trace below, I find it unlikely that the code itself in org.apache.tomcat.util.http.FastHttpDateFormat.getCurrentDate , by itself, would use up the Heap. However, if by the time it is called, the Heap is already 99% full, it just might. Andr� Warnier wrote: > Well maybe then you should have posted that stack trace and the comments > below to the list, and maybe someone would then have taken a closer look. > > I apologise (a little bit) for my original answer, but you must admit > that with the information you posted before, it was hard to make the > difference between that, and someone posting : "Tomcat doesn't work. Can > you help ?" > > > sunil.shevante@wipro.com wrote: >> Hi Andre, >> >> I am not kidding. >> >> My application has only 8 to 10 classes. I checked the heap using IBM >> heap analyser and my objects are not leaking memory. >> >> I am guessing 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.OutOfMemoryError: Java heap space >> at java.util.LinkedHashMap.createEntry(Unknown Source) >> at java.util.LinkedHashMap.addEntry(Unknown Source) >> at java.util.HashMap.put(Unknown Source) >> at >> sun.util.resources.OpenListResourceBundle.loadLookup(Unknown Source) >> at >> sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(Unknown >> Source) >> at >> sun.util.resources.OpenListResourceBundle.handleGetObject(Unknown Source) >> at >> sun.util.resources.TimeZoneNamesBundle.handleGetObject(Unknown Source) >> at java.util.ResourceBundle.getObject(Unknown Source) >> at java.util.ResourceBundle.getObject(Unknown Source) >> at java.util.ResourceBundle.getStringArray(Unknown Source) >> at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown >> Source) >> at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown >> Source) >> at java.util.TimeZone.getDisplayNames(Unknown Source) >> at java.util.TimeZone.getDisplayName(Unknown Source) >> at java.text.SimpleDateFormat.subFormat(Unknown Source) >> at java.text.SimpleDateFormat.format(Unknown Source) >> at java.text.SimpleDateFormat.format(Unknown Source) >> at java.text.DateFormat.format(Unknown Source) >> at >> org.apache.tomcat.util.http.FastHttpDateFormat.getCurrentDate(FastHttpDateFormat.java:115) >> >> at >> org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:926) >> >> at >> org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:739) >> >> at org.apache.coyote.Response.action(Response.java:170) >> at org.apache.coyote.Response.sendHeaders(Response.java:350) >> at >> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:308) >> at >> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:275) >> at >> org.apache.catalina.connector.Response.finishResponse(Response.java:501) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409) >> >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243) >> >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) >> >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.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.OutOfMemoryError: Java heap space >> at java.lang.reflect.Array.newArray(Native Method) >> at java.lang.reflect.Array.newInstance(Unknown Source) >> at java.util.AbstractCollection.toArray(Unknown Source) >> at >> org.apache.catalina.session.ManagerBase.findSessions(ManagerBase.java:705) >> >> at >> org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:527) >> >> at >> org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:518) >> >> at >> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1214) >> >> at >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1393) >> >> at >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1403) >> >> at >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1403) >> >> at >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1382) >> >> at java.lang.Thread.run(Unknown Source) >> ======================================================================================= >> >> >> Thanks, >> Sunil. >> >> -----Original Message----- >> From: Andr� Warnier [mailto:aw@ice-sa.com] Sent: Monday, May 30, 2011 >> 7:25 PM >> To: Tomcat Users List >> Subject: Re: Exception in thread ""http-bio-8080"-exec-9" >> java.lang.OutOfMemoryError: Java heap space >> >> 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.shevante@wipro.com wrote: >>> 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? >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> Please do not print this email unless it is absolutely necessary. >> The information contained in this electronic message and any >> attachments to this message are intended for the exclusive use of the >> addressee(s) and may contain proprietary, confidential or privileged >> information. If you are not the intended recipient, you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately and destroy all copies of this message and any attachments. >> WARNING: Computer viruses can be transmitted via email. The recipient >> should check this email and any attachments for the presence of >> viruses. The company accepts no liability for any damage caused by any >> virus transmitted by this email. >> www.wipro.com >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org