i dont know how to increase the heap space is using the parameter -Xmx?

2012/1/27, Pid <p...@pidster.com>:
> On 27/01/2012 17:54, Luciano Andress Martini wrote:
>> -Xmx512m -Xmx1024 ?
>
> Please post your replies below the questions I asked.
>
> Someone reading this thread would see the first bit of this message and
> wonder what it referred to.
>
>
> p
>
>> 2012/1/27, Luciano Andress Martini <777u...@gmail.com>:
>>> its 64 bits? How can i increase the object heap?
>>>
>>>
>>>
>>> 2012/1/27, Pid <p...@pidster.com>:
>>>> On 27/01/2012 16:29, Luciano Andress Martini wrote:
>>>>> I need to know if the error is from my part (server administrator),
>>>>> from the developer or from the hardware/vms. Some times that occurs
>>>>> when processing two milion of registry (i am talking from expressocard
>>>>> a company of credit cards).
>>>>>
>>>>> Its a rarely error because this processing occurs rarely.
>>>>>
>>>>> in fact, mysql in the another server with 12 processors, still
>>>>> running, and tomcat in a virtual machine called adm (in another
>>>>> physical machine, with 4 processors) still running.
>>>>>
>>>>> So, this errors occurs like that:
>>>>>
>>>>> 1- Tomcat started
>>>>> 2- This processing is realized ok in the first time
>>>>> 3- Tomcat stable in the users acess.
>>>>> 4- The processing is realized again, some days later, inn 98% of
>>>>> processing servers crashes, but mysql is still running.
>>>>> 5- Restar of tomcat service tomcat6 restart
>>>>> 6- the processing started again, and server can done the processing.
>>>>>
>>>>> In the moment of the crash:
>>>>> jstat -class
>>>>> Loaded  Bytes  Unloaded  Bytes     Time
>>>>>
>>>>>  15007 32265.0      300   505.9      12.11
>>>>
>>>> So permgen is using 32Mb
>>>>
>>>>> Java using: 914mb
>>>>> Free memory on the virtual machine server: 2152
>>>>>
>>>>> Java says:
>>>>> java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:
>>>>> Java heap space at
>>>>> java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at
>>>>> java.util.concurrent.FutureTask.get(FutureTask.java:91) at
>>>>> wfr.rules.WFRRule.execute(WFRRule.java:1820) at
>>>>> wfr.rules.WFRRule.execute(WFRRule.java:1792) at
>>>>> wfr.web.actions.ExecuteRuleAction.execute(ExecuteRuleAction.java:198)
>>>>> at wfr.web.Action.doAction(Action.java:126) at
>>>>> wfr.web.Controller.process(Controller.java:100) at
>>>>> wfr.web.Controller.doPost(Controller.java:67) at
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> at wfr.web.ContextFilter.doFilter(ContextFilter.java:78) at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>>> at
>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
>>>>> at
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>>> 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:298)
>>>>> at
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>>>>> at
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>>>> at
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>>>> at java.lang.Thread.run(Thread.java:662) Caused by:
>>>>> java.lang.OutOfMemoryError: Java heap space
>>>>>
>>>>> Java options (that i configurate)
>>>>> -Djava.awt.headless=true
>>>>> -Xmx512m
>>>>> -XX:MaxPermSize=3512M
>>>>
>>>> Cripes!  3.5Gb of PermGen space?!  I really doubt you want that.
>>>>
>>>> So your JVM is using 900Mb, your object heap is 512Mb.
>>>>
>>>> If you have more memory available, why not assign more to the heap?
>>>> How much memory is available?
>>>>
>>>> Are you using 32bit or 64bit?
>>>>
>>>>
>>>> p
>>>>
>>>>> -XX:+CMSIncrementalMode
>>>>> -XX:+UseConcMarkSweepGC
>>>>> -XX:+CMSClassUnloadingEnabled
>>>>> -XX:ParallelGCThreads=4
>>>>> -XX:+UseParNewGC
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> [key:62590808]
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> --
>
> [key:62590808]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to