tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ext-narsi.re...@nokia.com>
Subject How to increase the tomcat heap memory
Date Tue, 30 Dec 2008 10:37:56 GMT


Hi 

              Basically  im running  jmeter  with 30 threads with 3
requests with tomcat 6.0.18 , but tomcat is giving the Out of memory
error , 
 I want to increase Heap memory of tomcat , I tried  somany ways  but
it did not worked for me , it is  almost  1 week  for me ,

can somebody  pls help me how to increase the heap memory of tomcat
6.0.18 , and how can I check whether the memory is incresed or not ???


Here is sever error  code ,  

Dec 30, 2008 3:54:18 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet WebAPI threw exception
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2882)
	at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.jav
a:100)
	at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
	at java.lang.StringBuilder.append(StringBuilder.java:119)
	at
com.nokia.buddyradar.parser.LocationXMLCreator.xmlToByteArray(LocationXM
LCreator.java:189)
	at
com.nokia.buddyradar.webapi.WebApiServlet.convertXml(WebApiServlet.java:
154)
	at
com.nokia.buddyradar.webapi.WebApiServlet.doGet(WebApiServlet.java:109)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:857)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:565)
	at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
	at java.lang.Thread.run(Thread.java:619)
Dec 30, 2008 3:54:18 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet WebAPI threw exception
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2786)
	at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
	at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
	at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
	at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
	at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
	at java.io.BufferedWriter.write(BufferedWriter.java:212)
	at java.io.Writer.write(Writer.java:140)
	at
org.dom4j.io.XMLWriter.writeEscapeAttributeEntities(XMLWriter.java:1720)
	at org.dom4j.io.XMLWriter.writeAttributes(XMLWriter.java:1489)
	at org.dom4j.io.XMLWriter.writeElement(XMLWriter.java:937)
	at org.dom4j.io.XMLWriter.writeNode(XMLWriter.java:1301)
	at
org.dom4j.io.XMLWriter.writeElementContent(XMLWriter.java:1086)
	at org.dom4j.io.XMLWriter.writeElement(XMLWriter.java:954)
	at org.dom4j.io.XMLWriter.writeNode(XMLWriter.java:1301)
	at org.dom4j.io.XMLWriter.write(XMLWriter.java:344)
	at
com.nokia.buddyradar.parser.LocationXMLCreator.xmlToByteArray(LocationXM
LCreator.java:186)
	at
com.nokia.buddyradar.webapi.WebApiServlet.convertXml(WebApiServlet.java:
154)
	at
com.nokia.buddyradar.webapi.WebApiServlet.doGet(WebApiServlet.java:109)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:857)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:565)
 im in users block of readxml 
datasource connection
jdbc:mysql://localhost:3306/extravert?autoReconnect=true,
UserName=root@localhost, MySQL-AB JDBC Driver
datasource connection
jdbc:mysql://localhost:3306/extravert?autoReconnect=true,
UserName=root@localhost, MySQL-AB JDBC Driver
 inserted in to location
tablejdbc:mysql://localhost:3306/extravert?autoReconnect=true,
UserName=root@localhost, MySQL-AB JDBC Driver
datasource connection
jdbc:mysql://localhost:3306/extravert?autoReconnect=true,
UserName=root@localhost, MySQL-AB JDBC Driver



Thanks and Regards 

Narsi Reddy CH 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message