Re: Out of memory errors

2009-01-04 Thread Jack Cai
So you have set -XmsIm and -XmxMm options for the JVM? It will be helpful if
you can post your (partial) log here.

-Jack

2009/1/4 Ken T. ktectr...@gmail.com

 I'm getting out of memory errors on my site http://
 www.electricsenator.net.  Now if I watch the memory usage over the course
 of time, I never see it exceed 50 MB for more than a few minutes,  it has
 1024 MB allocated (a bit less) so I'm not sure why this would be a
 problem.  Is there some bug I'm running into, or is there a way to track
 this down?

 Thanks.

 I use this server for a blog and some testing.  Nothing really intensive.



 --
 Ken T. ktectr...@gmail.com




Re: Out of memory errors

2009-01-04 Thread Ken T.
On Sun, 04 Jan 2009 16:17:41 +0800, Jack Cai wrote:

 So you have set -XmsIm and -XmxMm options for the JVM? It will be
 helpful if you can post your (partial) log here.
 
 -Jack

I think I have.  I've set JAVA_OPTS in the script that calls start-
server. 

I'll try to get it to break again tomorrow and get the logs for you.

Thanks. 


-- 
Ken T. ktectr...@gmail.com



Re: [geronimo] Re: Out of memory during second publish - reproduced Fixed

2009-01-04 Thread Steve H.

Tim,

I tried deploying directly to Geronimo as you advised. I found I could
republish multiple times if Geronimo had been started directly and not by
Eclipse. This led me to carefully examining the ps traces running outside
eclipse and under eclipse.

By moving the JVM parameters to the start of the Eclipse input box I solved
the problem. I think the problem was that I had inserted these parameters
immediately before the closing . I think these parameters were not getting
through to the JVM invocation.

Thanks for your help,

Steve


Steve H. wrote:
 
 Hi Tim,
 
 Thanks for responding so promptly.
 
 I have followed your advice although I set MaxPermSize to 512m for eclipse
 and Geronimo. These settings can be seen in the ps output I posted.
 
 The artifact I am developing is an experimental EAR. It includes 3 jsp's
 but it includes Hibernate POJO's, EJB3 session beans and a Struts
 presentation layer.
 
 The EAR deploys and runs fine under Eclipse. However it generally fails
 with a PermGen Space error on the 2nd deployment. Not so good for
 development. I am running on a laptop however it has 2 GB RAM.
 
 Please email me your address and I will send you the EAR. However this
 might not be for a couple of weeks. as I'm just going on holiday. I will
 send you my email address separately.
 
 Many thanks for your help,
 
 Steve
 
 
 Tim McConnell wrote:
 
 Hi Steve, I assume you've gone through the 5 steps I outlined previously
 for 
 Dale. You might try increasing you MaxPermsize to 768mb but I doubt
 that'll make 
 much difference. Are you able to deploy the artifact to Geronimo outside
 of 
 Eclipse (e.g., using the Admin console) ?? Finally, would you be able to
 send me 
 the artifact that you're deploying ?? If it's proprietary and you cannot
 I fully 
 understand. If not, could you briefly describe the artifact that you are 
 deploying (i.e., EAR, WAR, EJB, etc.) ??
 
 Steve H. wrote:
 I'm getting this error consistently after increasing the memory
 allocation
 for Eclipse and Geronimo.
 
 I'm running on OpenSUSE 10.3 x64 with Geronimo 2.1.3 on a machine with
 2GB
 RAM.
 
 Output from 'ps aux | grep java' and Eclipse error trace shown below: -
 
 Output of 'ps aux | grep java' following PermGen crash in Geronimo.
 
 steve 4325 17.9 18.6 1474804 383908 ?  Sl   23:43   1:38
 /usr/lib64/jvm/java-1.6.0.u7-sun-1.6.0.u7/jre/bin/java -Xmx512m
 -XX:MaxPermSize=512m -jar
 /usr/share/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
 -os linux -ws gtk -arch x86_64 -showsplash -launcher
 /usr/share/eclipse/eclipse -name Eclipse --launcher.library
 /usr/share/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.101.R34x_v20080731/eclipse_1115.so
 -startup
 /usr/share/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
 -exitdata 160002 -vm /usr/bin/java -vmargs -Xmx512m -XX:MaxPermSize=512m
 -jar
 /usr/share/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
 steve 4835 27.1 14.8 518960 305744 ?   Sl   23:44   2:13
 /usr/lib64/jvm/java-1.6.0.u7-sun-1.6.0.u7/bin/java
 -javaagent:/usr/local/geronimo-tomcat6-javaee5-2.1.3/bin/jpa.jar
 -Djava.ext.dirs=/usr/local/geronimo-tomcat6-javaee5-2.1.3/lib/ext:/usr/lib64/jvm/java-1.6.0.u7-sun-1.6.0.u7/jre/lib/ext
 -Djava.endorsed.dirs=/usr/local/geronimo-tomcat6-javaee5-2.1.3/lib/endorsed:/usr/lib64/jvm/java-1.6.0.u7-sun-1.6.0.u7/jre/lib/endorsed
 -Xmx512m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8 -classpath
 /usr/local/geronimo-tomcat6-javaee5-2.1.3/bin/server.jar
 org.apache.geronimo.cli.daemon.DaemonCLI --long
 steve10155  0.0  0.0   5120   788 pts/1R+   23:52   0:00 grep
 java
 
 Trace from Eclipse
 
 23:51:10,653 WARN  [Settings] Settings: Could not parse struts.locale
 setting, substituting default VM locale
 23:51:31,757 ERROR [[jsp]] Servlet.service() for servlet jsp threw
 exception
 java.lang.OutOfMemoryError: PermGen space
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 etc...
 
 Output show below: -
 
 Tim McConnell wrote:

 That's wonderful Dale !! Please let me know if you have any other
 problems. BTW, 
 I've open the following JIRA to fix similar problems.

 - https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-543

 DRS2 Usenet wrote:
 Tim McConnell wrote:

 (snip)
 4.  Page down in that section and append your VM arguments at the end 
 -- don't delete those that are already there. I used the same ones 
 that Kevan used, but I'm using Java 1.5 and I see that you're using 
 Java 1.6:

 -Xmx512m -XX:MaxPermSize=256m
 (snip)
 Please try this and let me know what happens. I think you'll have 
 better results now. Meanwhile, I'm going to open a GEP JIRA to 
 investigate if we can programmatically determine and set the Geronimo 

Re: runtime deployment descriptor

2009-01-04 Thread David Jencks

The best docs I can find at the moment are at the end of this page:

http://cwiki.apache.org/GMOxDOC22/configuring-run-as-and-default-subjects-and-principal-role-mapping.html

although it concentrates on how to set up default subjects and run-as  
subjects which most people probably won't have to do.


To summarize, the mapping goes in a security element in your  
geronimo plan (e.g. geronimo-web.xml) and this element contains  
explicit mappings between the javaee roles defined in your application  
and the principals produced by whatever login modules you have  
configured.


thanks
david jencks

On Jan 4, 2009, at 5:09 AM, axiez wrote:



How do I map an application's abstract security roles to users/ 
groups? Very

recently I installed Apache Geronimo. Is the mapping done using an XML
document? Where can I find more information?
--
View this message in context: 
http://www.nabble.com/runtime-deployment-descriptor-tp21276039s134p21276039.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






runtime deployment descriptor

2009-01-04 Thread axiez

How do I map an application's abstract security roles to users/groups? Very
recently I installed Apache Geronimo. Is the mapping done using an XML
document? Where can I find more information?
-- 
View this message in context: 
http://www.nabble.com/runtime-deployment-descriptor-tp21276039s134p21276039.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Unable to serialize GBeanData

2009-01-04 Thread c.fr

Hi,
did you get a solution for your unable to serializa GBeanData problem ?
I have exactly the same error...
Thx


djencks wrote:
 
 I remember this happening quite a while ago but I thought it had been  
 fixed in openejb are you sure you are using the same g version on  
 all these platforms?
 
 thanks
 david jencks
 
 On Aug 18, 2008, at 1:39 PM, Cedric Hurst wrote:
 

 I've been a heavy user of Geronimo on Linux and Windows, but this is  
 my first
 time running G on Mac OS X.  I'm running into an issue at deploy- 
 time and
 I'm not sure if its related to filesystem permissions or something  
 else.
 Here's the trace:

 Geronimo Application Server started
 14:28:16,367 WARN  [startup] Unresolved ejb reference
 ejb.EventFacade/placeFacade in bean EventFacade.  Will attempt
 resolution again at runtime.
 14:28:17,920 WARN  [startup] Unresolved ejb reference
 web.jsf.PlaceBean/placeFacade in bean GeronimoEnc.  Will attempt
 resolution again at runtime.
 14:28:17,959 ERROR [Deployer] Deployment failed due to
 java.io.IOException: Unable to serialize GBeanData for
 default/MoworkingEAR/1.0/car?J2EEApplication=default/MoworkingEAR/ 
 1.0/car,j2eeType=WebModule,name=MoworkingWeb2.war
  at
 org 
 .apache 
 .geronimo 
 .kernel 
 .config.SerializedGBeanState.storeGBeans(SerializedGBeanState.java: 
 145)
  at
 org 
 .apache 
 .geronimo 
 .kernel 
 .config.SerializedGBeanState.writeObject(SerializedGBeanState.java:92)
  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:585)
  at  
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 
 917)
  at  
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
 1339)
  at
 java 
 .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
 1290)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 
 1079)
  at
 java 
 .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
 1375)
  at  
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
 1347)
  at
 java 
 .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
 1290)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 
 1079)
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 
 302)
  at java.util.HashMap.writeObject(HashMap.java:1039)
  at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
  at
 sun 
 .reflect 
 .DelegatingMethodAccessorImpl 
 .invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at  
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 
 917)
  at  
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
 1339)
  at
 java 
 .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
 1290)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 
 1079)
  at
 java 
 .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
 1375)
  at  
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
 1347)
  at
 java 
 .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
 1290)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 
 1079)
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 
 302)
  at
 org 
 .apache 
 .geronimo 
 .kernel 
 .config 
 .SerializedConfigurationMarshaler 
 .writeConfigurationData(SerializedConfigurationMarshaler.java:66)
  at
 org 
 .apache 
 .geronimo 
 .kernel 
 .config 
 .ConfigurationUtil.writeConfigurationData(ConfigurationUtil.java:216)
  at
 org 
 .apache 
 .geronimo 
 .system 
 .configuration 
 .ExecutableConfigurationUtil 
 .writeConfiguration(ExecutableConfigurationUtil.java:155)
  at
 org 
 .apache 
 .geronimo 
 .system 
 .configuration 
 .RepositoryConfigurationStore 
 .install(RepositoryConfigurationStore.java:338)
  at org.apache.geronimo.deployment.Deployer.install(Deployer.java:348)
  at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
  at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
  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:585)
  at
 org 
 .apache 
 .geronimo 
 .gbean 
 .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
 34)
  at
 org 
 .apache 
 .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)

Re: Unable to serialize GBeanData

2009-01-04 Thread David Jencks


On Jan 4, 2009, at 12:21 PM, c.fr wrote:



Hi,
did you get a solution for your unable to serializa GBeanData  
problem ?

I have exactly the same error...
Thx



Can you provide more details?  I still thing by far the most likely  
cause is using several different versions of geronimo in different  
parts of your deployment process.  Otherwise we would be inundated  
with reports of this problem.


thanks
david jencks


djencks wrote:


I remember this happening quite a while ago but I thought it had been
fixed in openejb are you sure you are using the same g version on
all these platforms?

thanks
david jencks

On Aug 18, 2008, at 1:39 PM, Cedric Hurst wrote:



I've been a heavy user of Geronimo on Linux and Windows, but this is
my first
time running G on Mac OS X.  I'm running into an issue at deploy-
time and
I'm not sure if its related to filesystem permissions or something
else.
Here's the trace:

snip


Re: runtime deployment descriptor

2009-01-04 Thread axiez

I am trying to test an example with remote client. I am creating an
x.properties file that gives values to admin.user, admin.host etc
properties. What should be the value of admin.port property?

axiez wrote:
 
 How do I map an application's abstract security roles to users/groups?
 Very recently I installed Apache Geronimo. Is the mapping done using an
 XML document? Where can I find more information?
 

-- 
View this message in context: 
http://www.nabble.com/runtime-deployment-descriptor-tp21276039s134p21286132.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Out of memory errors

2009-01-04 Thread Jarek Gawor
Ken,

If you are using start-server command to start the server you might
need to edit the etc/rc.d/start-server,default.groovy file to
configure the heap size for the server process. The heap size options
passed via JAVA_OPTS env. will work fine if you start the server using
the geronimo.sh script.

Jarek

On Sun, Jan 4, 2009 at 4:29 AM, Ken T. ktectr...@gmail.com wrote:
 On Sun, 04 Jan 2009 16:17:41 +0800, Jack Cai wrote:

 So you have set -XmsIm and -XmxMm options for the JVM? It will be
 helpful if you can post your (partial) log here.

 -Jack

 I think I have.  I've set JAVA_OPTS in the script that calls start-
 server.

 I'll try to get it to break again tomorrow and get the logs for you.

 Thanks.


 --
 Ken T. ktectr...@gmail.com