You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Usman Wyne <uw...@yahoo.com> on 2013/11/03 21:53:02 UTC
Jetty run takes 970 MB of memory and runs out of PermGen space
Hi dev community
I apologize upfront if some of these questions would look quite basic, but I am new to Cloud Stack and Open Source Software environment and feel that I need some guidance.
I am following the directions at this site for basic windows compilation
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
When I reach this step (Step 13)
Build) and I run
mvn -pl :cloud-client-ui jetty:run
I end up with
Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
I am attaching the whole output file just in case you find that useful.
Thanks again for your time and help
Regards
Usman Wyne
Re: Jetty running into an error
Posted by Chiradeep Vittal <Ch...@citrix.com>.
Have you followed this guide:
https://cwiki.apache.org/confluence/x/PgvMAQ
[Running a server for test/debug purposes]
On 12/9/13 11:13 AM, "Usman Wyne" <uw...@yahoo.com> wrote:
>Hi all,
>I am still new to this and trying to run jetty server i get the following
>errors. Can someone please take a look to see what I could be doing
>wrong.
>Regards
>Usman
>
>On http://localhost:8080/client I get
>HTTP ERROR: 503
>Problem accessing /client. Reason:
>SERVICE_UNAVAILABLE
>________________________________
>Powered by Jetty://
>
>
>
>and on http://localhost:8080/
>I get
>Error 404 - Not Found.No context on this server matched or handled this
>request.
>Contexts known to this server are:
> * /client --->
>org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@2830b9bd{/client,C:\cyg
>win64\home\User\cloudstack\client\target\generated-webapp}
Jetty running into an error
Posted by Usman Wyne <uw...@yahoo.com>.
Hi all,
I am still new to this and trying to run jetty server i get the following errors. Can someone please take a look to see what I could be doing wrong.
Regards
Usman
On http://localhost:8080/client I get
HTTP ERROR: 503
Problem accessing /client. Reason:
SERVICE_UNAVAILABLE
________________________________
Powered by Jetty://
and on http://localhost:8080/
I get
Error 404 - Not Found.No context on this server matched or handled this request.
Contexts known to this server are:
* /client ---> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@2830b9bd{/client,C:\cygwin64\home\User\cloudstack\client\target\generated-webapp}
Re: Jetty run takes 970 MB of memory and runs out of PermGen space
Posted by Usman Wyne <uw...@yahoo.com>.
Thanks Daan,
That was indeed missed by me. However adding those still did not resolve the problem. Earlier I had run it with the following command line
mvn -DjvmArgs="-Xmx2000m -Xms1000m -XX:PermSize=512m -XX:MaxPermSize=512m" -pl :cloud-client-ui jetty:run and still got the same problem.
I somehow feel that it is stuck in an endless loop. I tried it with -X command and it writes the attached almost endlessly
Thanks again for your help
Regards
Usman
From: Daan Hoogland <da...@gmail.com>
To: dev <de...@cloudstack.apache.org>; Usman Wyne <uw...@yahoo.com>
Cc: "cloudstack-dev@incubator.apache.org" <cl...@incubator.apache.org>
Sent: Sunday, November 3, 2013 4:12 PM
Subject: Re: Jetty run takes 970 MB of memory and runs out of PermGen space
Usman,
You probably forgot the actions at the bottom of step 4:
Modify the following things in eclipse.ini. The file can be found in
the directory you installed eclipse to.
Change launcher.XXMaxpermSize to 1024m
Add or change to -Xms1024m
Add or change to -Xmx2048m
On Sun, Nov 3, 2013 at 10:21 PM, Usman Wyne <uw...@yahoo.com> wrote:
>
> Hi dev community
> I apologize upfront if some of these questions would look quite basic, but I
> am new to Cloud Stack and Open Source Software environment and feel that I
> need some guidance.
>
> I am following the directions at this site for basic windows compilation
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
>
> When I reach this step (Step 13) Build) and I run
>
> mvn -pl :cloud-client-ui jetty:run
>
> I end up with
>
> Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
>
> I am attaching the whole output file just in case you find that useful.
> Thanks again for your time and help
> Regards
> Usman Wyne
>
>
Re: Jetty run takes 970 MB of memory and runs out of PermGen space
Posted by Laszlo Hornyak <la...@gmail.com>.
I added this line to my CS build scripts:
export MAVEN_OPTS="-Xmx2000m -XX:MaxPermSize=512m"
It works. However, it would be so nice to decrease the memory requirements.
On Sun, Nov 3, 2013 at 11:12 PM, Daan Hoogland <da...@gmail.com>wrote:
> Usman,
>
>
> You probably forgot the actions at the bottom of step 4:
> Modify the following things in eclipse.ini. The file can be found in
> the directory you installed eclipse to.
>
> Change launcher.XXMaxpermSize to 1024m
> Add or change to -Xms1024m
> Add or change to -Xmx2048m
>
>
> On Sun, Nov 3, 2013 at 10:21 PM, Usman Wyne <uw...@yahoo.com> wrote:
> >
> > Hi dev community
> > I apologize upfront if some of these questions would look quite basic,
> but I
> > am new to Cloud Stack and Open Source Software environment and feel that
> I
> > need some guidance.
> >
> > I am following the directions at this site for basic windows compilation
> >
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
> >
> > When I reach this step (Step 13) Build) and I run
> >
> > mvn -pl :cloud-client-ui jetty:run
> >
> > I end up with
> >
> > Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
> >
> > I am attaching the whole output file just in case you find that useful.
> > Thanks again for your time and help
> > Regards
> > Usman Wyne
> >
> >
>
--
EOF
Re: Jetty run takes 970 MB of memory and runs out of PermGen space
Posted by Daan Hoogland <da...@gmail.com>.
Usman,
You probably forgot the actions at the bottom of step 4:
Modify the following things in eclipse.ini. The file can be found in
the directory you installed eclipse to.
Change launcher.XXMaxpermSize to 1024m
Add or change to -Xms1024m
Add or change to -Xmx2048m
On Sun, Nov 3, 2013 at 10:21 PM, Usman Wyne <uw...@yahoo.com> wrote:
>
> Hi dev community
> I apologize upfront if some of these questions would look quite basic, but I
> am new to Cloud Stack and Open Source Software environment and feel that I
> need some guidance.
>
> I am following the directions at this site for basic windows compilation
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
>
> When I reach this step (Step 13) Build) and I run
>
> mvn -pl :cloud-client-ui jetty:run
>
> I end up with
>
> Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
>
> I am attaching the whole output file just in case you find that useful.
> Thanks again for your time and help
> Regards
> Usman Wyne
>
>
Jetty run takes 970 MB of memory and runs out of PermGen space
Posted by Usman Wyne <uw...@yahoo.com>.
Hi dev community
I apologize upfront if some of these questions would look quite basic, but I am new to Cloud Stack and Open Source Software environment and feel that I need some guidance.
I am following the directions at this site for basic windows compilation
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
When I reach this step (Step 13)
Build) and I run
mvn -pl :cloud-client-ui jetty:run
I end up with
Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
I am attaching the whole output file just in case you find that useful.
Thanks again for your time and help
Regards
Usman Wyne