2013年11月18日星期一

java launcher tomcat error , seeking hotshots help create a project no problem

Severe : A child container failed during start
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.FutureTask $ Sync.innerGet (FutureTask.java: 222)
at java.util.concurrent.FutureTask.get (FutureTask.java: 83)
at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java: 1142)
at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java: 785)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
at org.apache.catalina.core.ContainerBase $ StartChild.call (ContainerBase.java: 1595)
at org.apache.catalina.core.ContainerBase $ StartChild.call (ContainerBase.java: 1585)
at java.util.concurrent.FutureTask $ Sync.innerRun (FutureTask.java: 303)
at java.util.concurrent.FutureTask.run (FutureTask.java: 138)
at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java: 908)
at java.lang.Thread.run (Thread.java: 619)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange (Arrays.java: 3209)
at java.lang.String. (String.java: 216)
at java.io.DataInputStream.readUTF (DataInputStream.java: 644)
at java.io.DataInputStream.readUTF (DataInputStream.java: 547)
at org.apache.tomcat.util.bcel.classfile.ConstantUtf8. (ConstantUtf8.java: 48)
at org.apache.tomcat.util.bcel.classfile.Constant.readConstant (Constant.java: 129)
at org.apache.tomcat.util.bcel.classfile.ConstantPool. (ConstantPool.java: 60)
at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool (ClassParser.java: 209)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse (ClassParser.java: 119)
at org.apache.catalina.startup.ContextConfig.populateJavaClassCache (ContextConfig.java: 2174)
at org.apache.catalina.startup.ContextConfig.populateJavaClassCache (ContextConfig.java: 2157)
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes (ContextConfig.java: 2094)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream (ContextConfig.java: 2051)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar (ContextConfig.java: 1931)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl (ContextConfig.java: 1899)
at org.apache.catalina.startup.ContextConfig.processAnnotations (ContextConfig.java: 1885)
at org.apache.catalina.startup.ContextConfig.webConfig (ContextConfig.java: 1281)
at org.apache.catalina.startup.ContextConfig.configureStart (ContextConfig.java: 855)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfig.java: 346)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java: 119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (LifecycleBase.java: 90)
at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java: 5172)
... 8 more
2012-7-16 11:50:00 org.apache.catalina.core.ContainerBase startInternal
serious : A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina]. StandardHost [localhost]]
at java.util.concurrent.FutureTask $ Sync.innerGet (FutureTask.java: 222)
at java.util.concurrent.FutureTask.get (FutureTask.java: 83)
at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java: 1142)
at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java: 302)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
at org.apache.catalina.core.StandardService.startInternal (StandardService.java: 443)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java: 732)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
at org.apache.catalina.startup.Catalina.start (Catalina.java: 675)
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: 597)
at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java: 322)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java: 451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina]. StandardHost [localhost]]
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 154)
at org.apache.catalina.core.ContainerBase $ StartChild.call (ContainerBase.java: 1595)
at org.apache.catalina.core.ContainerBase $ StartChild.call (ContainerBase.java: 1585)
at java.util.concurrent.FutureTask $ Sync.innerRun (FutureTask.java: 303)
at java.util.concurrent.FutureTask.run (FutureTask.java: 138)
at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java: 908)
at java.lang.Thread.run (Thread.java: 619)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java: 1150)
at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java: 785)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
... 7 more
2012-7-16 11:50:00 org.apache.catalina.startup.Catalina start
serious : Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer [8005]]
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 154)
at org.apache.catalina.startup.Catalina.start (Catalina.java: 675)
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: 597)
at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java: 322)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java: 451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService [Catalina]]
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 154)
at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java: 732)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina]]
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 154)
at org.apache.catalina.core.StandardService.startInternal (StandardService.java: 443)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java: 1150)
at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java: 302)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java: 150)
... 11 more
2012-7-16 11:50:00 org.apache.catalina.startup.Catalina start
Information : Server startup in 5999 ms
------ Solution ----------------------- ---------------------
java.lang.OutOfMemoryError: Java heap space

how much you put the items into ah ? Memory overflow when it actually starts . . .


If your code does not create an object of the class infinite loop problem , then try to enlarge it Tomcat memory , add the boot parameter :
-Xmx512m

such as looking Catalina.bat, then modify :
set JAVA_OPTS =-Xmx512m

------ Solution ------------------------------------ --------
Caused by: java.lang.OutOfMemoryError: Java heap space
tomcat memory allocated too little memory overflow , modify Catalina.bat file Specific reference http://www.360doc.com/content/11/0628/21/3804236_130206311.shtml


------ Solution ------------------------------------ --------
with 2L
------ Solution --------------------------- -----------------
2 Floor positive solution
------ Solution ----------------- ---------------------------
you here quoted a heap overflow. Add -Xms value.
Another look at the project where there is not no use of the package, how have not loaded his bag before they reported heap overflow of it ? Before setting the value of the landlord or too small ?
------ Solution ---------------------------------------- ----
common phenomenon also encountered the last time I start to change the configuration of the memory size is OK
------ Solution ---------- ----------------------------------
java.lang.OutOfMemoryError: Java heap space
virtual machine memory is not enough , is not returned by the query result set is too large
------ Solution -------------------- ------------------------
agree to the second floor to speak with an estimated program where you are mistaken, cause such a problem similar to the cycle of death .
memory is exhausted. Default environment configuration is not the case. So be sure a procedural issue .

------ For reference only ---------------------------------- -----
If you are using spring mvc , see if configure web.xml spring of *. htm , if / then remove the test try
------ For reference only ------------------------------------- -
need to put $ TOMCAT_7/lib/servlet-api.jar copied to $ JAVA_HOME / jre / lib / ext directory down
------ For reference only ------ ---------------------------------
Tomcat7.0 and comes with jdk6.0 version Myeclipse inconsistent, own jdk7.0 add to the mix , replaced the jdk6.0,

没有评论:

发表评论