You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by yassine elassad <ya...@gmail.com> on 2006/11/01 01:14:25 UTC
java.lang.OutOfMemoryError: Java heap space
hi,
after a success full Build and Deployment using postgresql as a db
engine, calling demo portlets ends with an java.lang.OutOfMemoryError:
- - - - - - - -
javax.portlet.PortletException
at org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:102)
at org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:363)
at org.apache.jetspeed.portlets.security.users.UserDetailsPortlet.doView(UserDetailsPortlet.java:347)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
...
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: Java heap space
Nested Exception is java.lang.OutOfMemoryError: Java heap space
javax.portlet.PortletException
at org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:102)
at org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:363)
at org.apache.jetspeed.portlets.security.users.UserDetailsPortlet.doView(UserDetailsPortlet.java:347)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
- - - - - - - -
this happens already as i used the default build with derby and was
the reason why i switched to postgresql with the hope to get the
whole system running smoothly but it seems that the bottle neck is
hiding somewhere else.
any ideas where i could tune the performance? or what i could be missing?
JDK :
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
Tomcat :
apache-tomcat-5.5.20
Linux Debian Etch
i will now use an other database located on an other machine so maybe
that will brings the whole system to runs smoothly.
i would appreciate any suggestion or corrections that could brings me further
greetings
yassine
--
Yassine ELassad
JEE Freelance Developer
Cologne, Germany.
Fon : +49 221 800 8961
Mobile : +49 160 9223 9000
PEACE :
( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
Posted by Aaron Evans <aa...@gmail.com>.
FYI,
you'll get better performance if you set the min heap size (-Xms) to
the same thing as the max heap size.
-aaron
On 11/1/06, yassine elassad <ya...@gmail.com> wrote:
> hi martin,
>
> thanks for the tip seems to be fine at the moment i have fixed the
> $JAVA_OPTS as follow:
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - -
> JAVA_OPTS="-server -Xmx256m -Xms16m -Djava.awt.headless=true"
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - -
>
> i will be running some stress/performance tests by this weekend is
> there any test profile available for JMeter?
>
> would be great if someone can points me there otherwise i will try to
> create some and see what comes out
>
> greetings
> yassine
>
> >
> > you have to set the java_opts variable in catalina.sh.
> > i do not have the exact syntax by hand.
>
> --
> Yassine ELassad
> JEE Freelance Developer
> Cologne, Germany.
>
> Fon : +49 221 800 8961
> Mobile : +49 160 9223 9000
>
> PEACE :
> ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
Posted by yassine elassad <ya...@gmail.com>.
hi martin,
thanks for the tip seems to be fine at the moment i have fixed the
$JAVA_OPTS as follow:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
JAVA_OPTS="-server -Xmx256m -Xms16m -Djava.awt.headless=true"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
i will be running some stress/performance tests by this weekend is
there any test profile available for JMeter?
would be great if someone can points me there otherwise i will try to
create some and see what comes out
greetings
yassine
>
> you have to set the java_opts variable in catalina.sh.
> i do not have the exact syntax by hand.
--
Yassine ELassad
JEE Freelance Developer
Cologne, Germany.
Fon : +49 221 800 8961
Mobile : +49 160 9223 9000
PEACE :
( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
Posted by Martin Dulisch <md...@gmail.com>.
hi yassine,
try to set the max memory for the virtual maschine in tomcat catalina.sh.
default is 64MB, this might be to poor.
you have to set the java_opts variable in catalina.sh.
i do not have the exact syntax by hand.
martin
2006/11/1, yassine elassad <ya...@gmail.com>:
> hi,
>
> after a success full Build and Deployment using postgresql as a db
> engine, calling demo portlets ends with an java.lang.OutOfMemoryError:
> - - - - - - - -
> javax.portlet.PortletException
> at org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:102)
> at org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:363)
> at org.apache.jetspeed.portlets.security.users.UserDetailsPortlet.doView(UserDetailsPortlet.java:347)
> at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
> at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
>
> ...
>
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.OutOfMemoryError: Java heap space
>
> Nested Exception is java.lang.OutOfMemoryError: Java heap space
> javax.portlet.PortletException
> at org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:102)
> at org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:363)
> at org.apache.jetspeed.portlets.security.users.UserDetailsPortlet.doView(UserDetailsPortlet.java:347)
> at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
> at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>
>
> - - - - - - - -
>
> this happens already as i used the default build with derby and was
> the reason why i switched to postgresql with the hope to get the
> whole system running smoothly but it seems that the bottle neck is
> hiding somewhere else.
>
> any ideas where i could tune the performance? or what i could be missing?
> JDK :
> java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
>
> Tomcat :
> apache-tomcat-5.5.20
>
> Linux Debian Etch
>
> i will now use an other database located on an other machine so maybe
> that will brings the whole system to runs smoothly.
> i would appreciate any suggestion or corrections that could brings me further
> greetings
> yassine
>
> --
> Yassine ELassad
> JEE Freelance Developer
> Cologne, Germany.
>
> Fon : +49 221 800 8961
> Mobile : +49 160 9223 9000
>
> PEACE :
> ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org