Hi Denna.

In Eclipse at run and at debug there's a parameter section. Below of it
you set the memory for applications which you run/debug from Eclipse
(started from a main()).

For Tomcat you set it somewhere else.

So you could test it via running/debugging it from Eclipse. If it works
then the Tomcat setting has to be done. Once set you forget such things
again. There I've to look myself first.

Regards, Karl-Heinz.


Am Di 29.11.2005 14:14 schrieb Dhruti Ramani <[EMAIL PROTECTED]>:

> I am using Eclipse and Tomcat for my project. The way I am setting my
> heap size is when I start Eclipse using "eclipse -data /workspaceDir/
> -vmargs -Xmx512M". Is this the right way to set heap size? I am using
> linux, how do I check how much heap size jvm is using?
>    
>   Thanks,
>   Denna
>   
> 
> [EMAIL PROTECTED] wrote:
>   I'd just increase your heap size with -Xmx
> 
> -Andy
> 
> Dhruti Ramani wrote:
> > I will try that but don't understand what difference its gonna make?
> > File will be still more than 2Mb.
> > 
> > Denna
> > 
> > Karl-Heinz Zengerle wrote:
> > Hi Denna.
> > 
> > Is it easy to rebuild the template from the scratch and then retry
> > it?
> > 
> > Regards, Karl-Heinz.
> > 
> > 
> > Am Mo 28.11.2005 19:10 schrieb Dhruti Ramani :
> > 
> > 
> >>Sorry but that could not solve the problem.
> >>
> >>Any other suggestions?
> >>Thanks,
> >>Denna
> >>
> >>Karl-Heinz Zengerle wrote:
> >>Hi Denna.
> >>
> >>2.5.0 had problem with lists. Do you use such constructs?
> >>
> >>You could make a countertest with 2.5.1 or 2.0.
> >>
> >>Regards, Karl-Heinz.
> >>
> >>
> >>Am Mo 28.11.2005 17:41 schrieb Dhruti Ramani :
> >>
> >>
> >>>Thanks for replying.
> >>>
> >>>I am using POI2.5, if I upload file less than 2 Mb it works fine.
> >>>
> >>>Here is the full exception,
> >>>
> >>>java.lang.reflect.InvocationTargetException
> >>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>at
> >>>
>
> >>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>at
> >>>
>
> >>>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>at java.lang.reflect.Method.invoke(Method.java:324)
> >>>at com.ds.reflection.Reflection.invoke(Reflection.java:130)
> >>>at wt.core.Controller.doAction(Controller.java:83)
> >>>at wt.core.Action.invokeControllerMethod(Action.java:114)
> >>>at wt.core.Action.executeAction(Action.java:99)
> >>>at wt.core.Action.execute(Action.java:45)
> >>>at
> >>>
>
> >>>>>>wt.core.WtRequestController.processActions(WtRequestController.java:86)
> >>>at
> >>>
>
> >>>>>>wt.core.WtRequestController.processRequest(WtRequestController.java:64)
> >>>at wt.tags.Editor.doStartTag(Editor.java:57)
> >>>at org.apache.jsp.Appmodel$jsp._jspService(Appmodel$jsp.java:69)
> >>>at
> >>>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >>>at
> >>>
>
> >>>>>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
> >>>at
> >>>
>
> >>>>>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> >>>at
> >>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> >>>at
> >>>
>
> >>>>>>wt.core.WtMultiPartRequestFilter.doFilter(WtMultiPartRequestFilter.java:72)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
> >>>at
> >>>
>
> >>>>>>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
> >>>at java.lang.Thread.run(Thread.java:534)
> >>>Caused by: java.lang.OutOfMemoryError
> >>>
> >>>Thanks,
> >>>Denna
> >>>
> >>>Karl-Heinz Zengerle wrote: Hi Denna.
> >>>
> >>>With just 256 MB we never had problems with files of 2 MB. So I
> >>>rather
> >>>assume other problems.
> >>>
> >>>What's the POI version? How does the exception look like?
> >>>
> >>>Regards, Karl-Heinz.
> >>>
> >>>
> >>>
> >>>Am Mo 28.11.2005 16:47 schrieb Dhruti Ramani :
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>Sorry I am posting same question here. I saw so many messages
> >>>>about
> >>>>this but could not find any solution.
> >>>>
> >>>>I am starting Eclipse with jvm setting -Xmx1024M, also using
> >>>>tomcat
> >>>>server. When I tried to read excel file larger than 1Mb then it
> >>>>raised exception about memory. Right now Java part works fine but
> >>>>i
> >>>>think when I say HSSFWorkbook book=new HSSFWorkbook(inputStream)
> >>>>at
> >>>>that time it gives me java.lang.OutofMemory Exception.
> >>>>
> >>>>Am I missing something? 
> >>>>I really need help with this.
> >>>>
> >>>>Thanks,
> >>>>Denna
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------
> >>>>Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> >>>
> >>>
> >>>
> >>>
>
> >>>>>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> >>>The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>---------------------------------
> >>>Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> >>
> >>
> >>
>
> >>>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> >>The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------
> >>Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> > 
> > 
> > 
> > 
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> 
> 
> -- 
> Andrew C. Oliver
> SuperLink Software, Inc.
> 
> Java to Excel using POI
> http://www.superlinksoftware.com/services/poi
> Commercial support including features added/implemented, bugs fixed.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
> 
>   
> 
> 
>               
> ---------------------------------
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to