cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CK <cloudw...@gmail.com>
Subject Re: DevCloud2 problem
Date Tue, 02 Jul 2013 13:38:50 GMT
Added the following and it sprung to life: export MAVEN_OPTS="-Xms512m
-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"

Thanks


On 2 July 2013 10:20, Sebastien Goasguen <runseb@gmail.com> wrote:

> On 7/2/13 11:10 AM, CK wrote:
>
>> To start off with I did allocate 2048 MB RAM and hit the problem, I then
>> increased the RAM to 4096 and still not working.
>>
>>
> maybe you can check your maven options, check:
> https://cwiki.apache.org/**confluence/display/CLOUDSTACK/**
> How+to+build+on+master+branch<https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch>
>
> And the MAVEN_OPTS variable
>
>
>
>
>> On 2 July 2013 08:29, Sebastien Goasguen<runseb@gmail.com>  wrote:
>>
>>
>>
>>> On Jul 1, 2013, at 8:45 PM, CK<cloudwizz@gmail.com>  wrote:
>>>
>>>
>>>
>>>> I’m having some problems deploying DevCloud2 and wonder if you could
>>>> help
>>>> please. I would like to build the Cloudstack source in DevCloud2 and run
>>>> everything from within the DevCloud2 VM. So far I have done the
>>>>
>>>>
>>> following,
>>>
>>>
>>>> any idea what can be causing the PermGen error at the end:**
>>>>
>>>> 1.       Downloaded and imported the DevCloud2 image into VirtualBox –
>>>> ensured network settings were correct etc.
>>>>
>>>> **
>>>>
>>>> 2.       Used PuTTY to SSH to the machine at 192.168.56.10 and logged in
>>>> with root and password for username and password****
>>>>
>>>> 3.       cd to /opt/cloudstack****
>>>>
>>>> 4.       git cloned into the source code for
>>>>
>>>>
>>> apache-cloudstack-4.1.0-src**
>>>
>>>
>>>> 5.       once that had completed I cd’d to the
>>>> apache-cloudstack-4.1.0-src directory****
>>>>
>>>> 6.       Ran mvn clean install –P developer,systemvm****
>>>>
>>>> 7.       Changed the host value in devcloud.sql to 192.168.56.10 as I
>>>>
>>>>
>>> want
>>>
>>>
>>>> everything to run inside this one VM****
>>>>
>>>> 8.       Ran mvn –pl developer,tools/devloud –Deploydb –P developer****
>>>>
>>>> 9.     Ran mvn -pl :cloud-client-ui jetty:run
>>>> I get the following messages:
>>>> ...
>>>> INFO  [cloud.server.**ManagementServerImpl] (Timer-2:) Startup
>>>> CloudStack
>>>> management server...
>>>> INFO  [cloud.cluster.**ClusterServiceServletContainer**] (Thread-16:)
>>>> Cluster
>>>> service servlet container listening on port 9090
>>>> INFO  [cloud.cluster.**ClusterManagerImpl] (Cluster-Heartbeat-1:) We
>>>> are
>>>> good, no orphan management server msid in host table is found
>>>> INFO  [cloud.cluster.**ClusterManagerImpl] (Cluster-Heartbeat-1:) No
>>>>
>>>>
>>> inactive
>>>
>>>
>>>> management server node found
>>>> WARN  [cloud.cluster.**ClusterManagerImpl] (Cluster-Notification-1:)
>>>> Notifying management server join event took 20 ms
>>>>
>>>> Then when I browse from my laptop: http://192.168.56.10:8080/**client/<http://192.168.56.10:8080/client/>I
>>>>
>>>>
>>> get
>>>
>>>
>>>> the following PermGen error in the browser:
>>>>
>>>> HTTP ERROR 500
>>>>
>>>> Problem accessing /client/. Reason:
>>>>
>>>>     PermGen space
>>>>
>>>> Caused by:
>>>>
>>>> java.lang.OutOfMemoryError: PermGen space
>>>>        at java.lang.ClassLoader.**defineClass1(Native Method)
>>>>        at java.lang.ClassLoader.**defineClass(ClassLoader.java:**634)
>>>>        at
>>>>
>>>>
>>> java.security.**SecureClassLoader.defineClass(**
>>> SecureClassLoader.java:142)
>>>
>>>
>>>>        at java.net.URLClassLoader.**defineClass(URLClassLoader.**
>>>> java:277)
>>>>        at java.net.URLClassLoader.**access$000(URLClassLoader.**
>>>> java:73)
>>>>        at java.net.URLClassLoader$1.run(**URLClassLoader.java:212)
>>>>        at java.security.**AccessController.doPrivileged(**Native
>>>> Method)
>>>>        at java.net.URLClassLoader.**findClass(URLClassLoader.java:**
>>>> 205)
>>>>        at
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClassFromSelf(ClassRealm.**java:386)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.strategy.**
>>> SelfFirstStrategy.loadClass(**SelfFirstStrategy.java:42)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClass(ClassRealm.java:244)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClass(ClassRealm.java:230)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.eclipse.jdt.internal.**compiler.lookup.**LookupEnvironment.**
>>> buildTypeBindings(**LookupEnvironment.java:143)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.eclipse.jdt.internal.**compiler.Compiler.**
>>> beginToCompile(Compiler.java:**292)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.eclipse.jdt.internal.**compiler.Compiler.compile(**
>>> Compiler.java:315)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.compiler.**JDTJavaCompiler.compile(**
>>> JDTJavaCompiler.java:503)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.compiler.**Compiler.generateClass(**Compiler.java:368)
>>>
>>>
>>>>        at org.apache.jasper.compiler.**Compiler.compile(Compiler.**
>>>> java:437)
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.**JspCompilationContext.compile(**
>>> JspCompilationContext.java:**608)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.servlet.**JspServletWrapper.service(**
>>> JspServletWrapper.java:360)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
>>> JspServlet.java:486)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.apache.jasper.servlet.**JspServlet.service(JspServlet.**java:380)
>>>
>>>
>>>>        at javax.servlet.http.**HttpServlet.service(**
>>>> HttpServlet.java:820)
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**ServletHolder.handle(**
>>> ServletHolder.java:511)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**ServletHandler.handle(**
>>> ServletHandler.java:401)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.security.**SecurityHandler.handle(**
>>> SecurityHandler.java:216)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**SessionHandler.handle(**
>>> SessionHandler.java:182)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.handler.**ContextHandler.handle(**
>>> ContextHandler.java:766)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.webapp.**WebAppContext.handle(**
>>> WebAppContext.java:450)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**Dispatcher.forward(Dispatcher.**java:327)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**Dispatcher.forward(Dispatcher.**java:126)
>>>
>>>
>>>>        at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**DefaultServlet.doGet(**
>>> DefaultServlet.java:503)
>>>
>>>
>>>>
>>>> On the console:
>>>>
>>>> 2013-07-02 00:28:49.869:WARN::/client/
>>>> java.lang.OutOfMemoryError: PermGen space
>>>>         at java.lang.ClassLoader.**defineClass1(Native Method)
>>>>         at java.lang.ClassLoader.**defineClass(ClassLoader.java:**634)
>>>>         at
>>>> java.security.**SecureClassLoader.defineClass(**
>>>> SecureClassLoader.java:142)
>>>>         at java.net.URLClassLoader.**defineClass(URLClassLoader.**
>>>> java:277)
>>>>         at java.net.URLClassLoader.**access$000(URLClassLoader.**
>>>> java:73)
>>>>         at java.net.URLClassLoader$1.run(**URLClassLoader.java:212)
>>>>         at java.security.**AccessController.doPrivileged(**Native
>>>> Method)
>>>>         at java.net.URLClassLoader.**findClass(URLClassLoader.java:**
>>>> 205)
>>>>         at
>>>>
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClassFromSelf(ClassRealm.**java:386)
>>>
>>>
>>>>         at
>>>>
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.strategy.**
>>> SelfFirstStrategy.loadClass(**SelfFirstStrategy.java:42)
>>>
>>>
>>>>         at
>>>>
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClass(ClassRealm.java:244)
>>>
>>>
>>>>         at
>>>>
>>>>
>>>>
>>> org.codehaus.plexus.**classworlds.realm.ClassRealm.**
>>> loadClass(ClassRealm.java:230)
>>>
>>>
>>>>         at
>>>> org.eclipse.jdt.internal.**compiler.Compiler.<init>(**
>>>> Compiler.java:111)
>>>>         at
>>>>
>>>>
>>>>
>>> org.apache.jasper.compiler.**JDTJavaCompiler.compile(**
>>> JDTJavaCompiler.java:498)
>>>
>>>
>>>>         at
>>>> org.apache.jasper.compiler.**Compiler.generateClass(**
>>>> Compiler.java:368)
>>>>         at org.apache.jasper.compiler.**Compiler.compile(Compiler.**
>>>> java:437)
>>>>         at
>>>>
>>>>
>>>>
>>> org.apache.jasper.**JspCompilationContext.compile(**
>>> JspCompilationContext.java:**608)
>>>
>>>
>>>>         at
>>>>
>>>>
>>>>
>>> org.apache.jasper.servlet.**JspServletWrapper.service(**
>>> JspServletWrapper.java:360)
>>>
>>>
>>>>         at
>>>> org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
>>>> JspServlet.java:486)
>>>>         at
>>>>
>>>>
>>> org.apache.jasper.servlet.**JspServlet.service(JspServlet.**java:380)
>>>
>>>
>>>>         at javax.servlet.http.**HttpServlet.service(**
>>>> HttpServlet.java:820)
>>>>         at
>>>> org.mortbay.jetty.servlet.**ServletHolder.handle(**
>>>> ServletHolder.java:511)
>>>>         at
>>>> org.mortbay.jetty.servlet.**ServletHandler.handle(**
>>>> ServletHandler.java:401)
>>>>         at
>>>>
>>>>
>>>>
>>> org.mortbay.jetty.security.**SecurityHandler.handle(**
>>> SecurityHandler.java:216)
>>>
>>>
>>>>         at
>>>> org.mortbay.jetty.servlet.**SessionHandler.handle(**
>>>> SessionHandler.java:182)
>>>>         at
>>>> org.mortbay.jetty.handler.**ContextHandler.handle(**
>>>> ContextHandler.java:766)
>>>>         at
>>>> org.mortbay.jetty.webapp.**WebAppContext.handle(**
>>>> WebAppContext.java:450)
>>>>         at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**Dispatcher.forward(Dispatcher.**java:327)
>>>
>>>
>>>>         at
>>>>
>>>>
>>> org.mortbay.jetty.servlet.**Dispatcher.forward(Dispatcher.**java:126)
>>>
>>>
>>>>         at
>>>> org.mortbay.jetty.servlet.**DefaultServlet.doGet(**
>>>> DefaultServlet.java:503)
>>>>         at javax.servlet.http.**HttpServlet.service(**
>>>> HttpServlet.java:707)
>>>>         at javax.servlet.http.**HttpServlet.service(**
>>>> HttpServlet.java:820)
>>>> ^C2013-07-02 00:29:00.038:INFO::Shutdown hook executing
>>>> 2013-07-02 00:29:00.042:INFO::Stopped
>>>>
>>>>
>>> SelectChannelConnector@0.0.0.**0:8080<http://SelectChannelConnector@0.0.0.0:8080>
>>>
>>>
>>>> 2013-07-02 00:29:00.548:INFO:/client:**Closing Spring root
>>>> WebApplicationContext
>>>> INFO  [context.support.**XmlWebApplicationContext] (Shutdown:) Closing
>>>> Root
>>>> WebApplicationContext: startup date [Tue Jul 02 00:27:05 UTC 2013]; root
>>>>
>>>>
>>> of
>>>
>>>
>>>> context hierarchy
>>>> INFO  [factory.support.**DefaultListableBeanFactory] (Shutdown:)
>>>> Destroying
>>>> singletons in
>>>>
>>>>
>>>>
>>> org.springframework.beans.**factory.support.**
>>> DefaultListableBeanFactory@**40eca3
>>> :
>>>
>>>
>>>> defining beans
>>>>
>>>>
>>>>
>>> [org.springframework.context.**annotation.**
>>> internalConfigurationAnnotatio**nProcessor,org.**
>>> springframework.context.**annotation.**internalAutowiredAnnotationPro**
>>> cessor,org.springframework.**context.annotation.**
>>> internalRequiredAnnotationProc**essor,org.springframework.**
>>> context.annotation.**internalCommonAnnotationProces**
>>> sor,componentContext,**transactionContextBuilder,**
>>> actionEventInterceptor,**instantiat
>>>
>>> How much RAM did you allocated to devcloud2 in virtual box ?
>>> You might want to allocated 2048 MB
>>>
>>>
>>
>>
>
>

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