You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anil Garg <an...@niksun.com> on 2002/08/02 18:26:56 UTC

important help

please see the following error..and tell me on what lines should i start thinking. This error is coming on a particular users machine ..and doesnt come at other locations:


Error: 500

   Location: /servlet/NROptions

   Internal Servlet Error:

   java.lang.OutOfMemoryError:

              at
java.lang.StringBuffer.expandCapacity(StringBuffer.java)

              at java.lang.StringBuffer.append(StringBuffer.java)

              at NRConfig.getMonths(NRConfig.java:4760)

              at NRConfig.printChartTimes(NRConfig.java:3732)

              at NRConfig.getDLTinfo(NRConfig.java:347)

              at NROptions.ListOptions(NROptions.java:426)

              at NROptions.doGet(NROptions.java:29)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

              at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

              at
org.apache.tomcat.core.Handler.service(Handler.java:287)

              at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

              at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:812)                                             
              at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

              at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
tion(Ajp13ConnectionHandler.java:160)              
              at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)                                                  
              at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)                                                 
              at java.lang.Thread.run(Thread.java)

 



 
This is really important to me..
i hope to get some mails which will let me analyse the problem well.
regards
anil 
PS:i am newbie to java and tomcat

Re: important help

Posted by Anil Garg <an...@niksun.com>.
thanx for ur mail..
could u plz tell me:


> If you are unable to re-architect your application to consume less memory
> or free memory up, you can try upgrading to JDK 1.4.x (which has a better
> garbage collector)
How to check which version of jdk is on my machine.(i hope you wont mind
questions too trivial for u)
>or check out the options to increase heap and thread
> stack size in the JVM ( run 'java -X' from the command line for the
> options)

How can i check the current heap size set and how can i chage it *on unix
machine*

thanx
anil
>
> Cheers,
> Michael
>
> ----- Original Message -----
> From: "Anil Garg" <an...@niksun.com>
> To: <to...@jakarta.apache.org>
> Sent: Friday, August 02, 2002 12:26 PM
> Subject: important help
>
>
> please see the following error..and tell me on what lines should i start
> thinking. This error is coming on a particular users machine ..and doesnt
> come at other locations:
>
>
> Error: 500
>
>    Location: /servlet/NROptions
>
>    Internal Servlet Error:
>
>    java.lang.OutOfMemoryError:
>
>               at
> java.lang.StringBuffer.expandCapacity(StringBuffer.java)
>
>               at java.lang.StringBuffer.append(StringBuffer.java)
>
>               at NRConfig.getMonths(NRConfig.java:4760)
>
>               at NRConfig.printChartTimes(NRConfig.java:3732)
>
>               at NRConfig.getDLTinfo(NRConfig.java:347)
>
>               at NROptions.ListOptions(NROptions.java:426)
>
>               at NROptions.doGet(NROptions.java:29)
>
>               at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>
>               at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
>               at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>
>               at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
>
>               at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>
>               at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
> a:812)
>               at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>
>               at
> org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
> tion(Ajp13ConnectionHandler.java:160)
>               at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
>               at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
>               at java.lang.Thread.run(Thread.java)
>
>
>
>
>
>
> This is really important to me..
> i hope to get some mails which will let me analyse the problem well.
> regards
> anil
> PS:i am newbie to java and tomcat
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: important help

Posted by Michael Locasto <lo...@cs.columbia.edu>.
This is more of a problem with the way your application is architected,
rather than Tomcat.

The java.lang.OutOfMemoryError occurs when the JVM cannot allocate any
space for a new object, and the garbage collector cannot collect any
unused heap space.

That's is the low-level reason the StringBuffer is blowing up.

In the file NRConfig, method getMonths(), line 4760, you are doing some
string operation and that is causing the Error to be thrown.

If you are unable to re-architect your application to consume less memory
or free memory up, you can try upgrading to JDK 1.4.x (which has a better
garbage collector) or check out the options to increase heap and thread
stack size in the JVM ( run 'java -X' from the command line for the
options)

Cheers,
Michael

----- Original Message -----
From: "Anil Garg" <an...@niksun.com>
To: <to...@jakarta.apache.org>
Sent: Friday, August 02, 2002 12:26 PM
Subject: important help


please see the following error..and tell me on what lines should i start
thinking. This error is coming on a particular users machine ..and doesnt
come at other locations:


Error: 500

   Location: /servlet/NROptions

   Internal Servlet Error:

   java.lang.OutOfMemoryError:

              at
java.lang.StringBuffer.expandCapacity(StringBuffer.java)

              at java.lang.StringBuffer.append(StringBuffer.java)

              at NRConfig.getMonths(NRConfig.java:4760)

              at NRConfig.printChartTimes(NRConfig.java:3732)

              at NRConfig.getDLTinfo(NRConfig.java:347)

              at NROptions.ListOptions(NROptions.java:426)

              at NROptions.doGet(NROptions.java:29)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

              at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

              at
org.apache.tomcat.core.Handler.service(Handler.java:287)

              at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

              at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:812)
              at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

              at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
tion(Ajp13ConnectionHandler.java:160)
              at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
              at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
              at java.lang.Thread.run(Thread.java)






This is really important to me..
i hope to get some mails which will let me analyse the problem well.
regards
anil
PS:i am newbie to java and tomcat




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: important help

Posted by Anil Garg <an...@niksun.com>.
i would like to add more...
i am not able to reproduce the error....how can i reproduce it..
if i dint provide the sufficinet information u need plz tell me.
regards
anil
----- Original Message -----
From: "Anil Garg" <an...@niksun.com>
To: <to...@jakarta.apache.org>
Sent: Friday, August 02, 2002 12:26 PM
Subject: important help


please see the following error..and tell me on what lines should i start
thinking. This error is coming on a particular users machine ..and doesnt
come at other locations:


Error: 500

   Location: /servlet/NROptions

   Internal Servlet Error:

   java.lang.OutOfMemoryError:

              at
java.lang.StringBuffer.expandCapacity(StringBuffer.java)

              at java.lang.StringBuffer.append(StringBuffer.java)

              at NRConfig.getMonths(NRConfig.java:4760)

              at NRConfig.printChartTimes(NRConfig.java:3732)

              at NRConfig.getDLTinfo(NRConfig.java:347)

              at NROptions.ListOptions(NROptions.java:426)

              at NROptions.doGet(NROptions.java:29)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

              at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

              at
org.apache.tomcat.core.Handler.service(Handler.java:287)

              at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

              at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:812)
              at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

              at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
tion(Ajp13ConnectionHandler.java:160)
              at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
              at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
              at java.lang.Thread.run(Thread.java)






This is really important to me..
i hope to get some mails which will let me analyse the problem well.
regards
anil
PS:i am newbie to java and tomcat



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>