Abhi Vuyyuru

Greenhorn
+ Follow
since Mar 10, 2005
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhi Vuyyuru

Joseph, Thanks for the reply. I already tried that solution. It did not work for us.

13 years ago
All

On Linux 64 bit machine and weblogic 10.3.2 we are getting OOM very frequently.


I have used MissionControl to see if there is any JavaHeap issue but I could not find any. I notice there is a constant increase in physical memory usage where as the Java Heap usage was increasing and decreasing at regular intervals(GC).

Thanks in advance for your help.

Below are the details for hardware and appserver startup params

uname:

Linux xxxxxx 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

weblogicStartup:

/apps/jrockit6-64/bin/java -Xms2048m -Xmx2048m -XXsetGC:genparcon -Xns:1536m -da -Dplatform.home=/apps/bea10.3.2/wlserver_10.3 -Dwls.home=/apps/bea10.3.2/wlserver_10.3/server -Dwli.home=/apps/bea10.3.2/wlserver_10.3/integration -Dweblogic.management.discover=false -Dweblogic.management.server=http://server-prod1:9400 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/apps/bea10.3.2/patch_wls1032/profiles/default/sysext_manifest_classpath -Dweblogic.Name=Server01 -Djava.security.policy=/apps/bea10.3.2/wlserver_10.3/server/lib/weblogic.policy weblogic.Server

Exception from log file:
java.lang.OutOfMemoryError: class allocation, 11055935600 loaded, 4140625920 footprint JVM@check_alloc (src/jvm/model/classload/classalloc.c:118). 2760 byt
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.spring.monitoring.utils.Delegator.invokeGetBoolean(Delegator.java:21)
at weblogic.spring.monitoring.utils.AbstractBeanDefinitionDelegator.isPrototype(AbstractBeanDefinitionDelegator.java:59)
at weblogic.spring.monitoring.actions.CreateBeanElapsedTimeActionState.setAbstractBeanDefinition(CreateBeanElapsedTimeActionState.java:19)
at weblogic.spring.monitoring.actions.AbstractBeanFactoryCreateBeanAction.setArguments(AbstractBeanFactoryCreateBeanAction.java:36)
at weblogic.spring.monitoring.actions.BaseElapsedTimeAction.preProcess(BaseElapsedTimeAction.java:58)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:379)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at com.app.distribution.util.ApplicationContextLoader.getBean(ApplicationContextLoader.java:23)
at com.app.distribution.ejb.BatchDistributionMDB.onMessage(BatchDistributionMDB.java:49)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy90.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3748)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
13 years ago
The jar file is in the runtime classpath. I removed the commons-logging.jar file and tried to deploy, and it fails before attempting to initialize hibernate, the exception is thrown at spring initialization. If I include commons-logging.jar file, spring initializes fine (by this I mean other beans) but fails at hibernate initialization.

This happens if I deploy as split-directory and also when I try to deploy the ear (which contains all the jar files).
I keep getting this error when I try to deploy on weblogic 10.3 (a split-directory env). I'm trying to initialize hibernate through spring



Here is the spring configuration



I have commons-logging.jar in my classpath. The following is a list of jar files in my lib directory

I haven't gone through the whole configuration, but did notice that you don't have an action attribute on your form.

<form method="post">


You must have an action to which you submit the form. You can use your servlet path as the action.
The class org.objectweb.asm.ClassWriter is in asm.jar file. Please check if the version it you have the correct version of the file.

Also, there was a similar problem with using cglib2.0, you may want to try switching to an older version instead of the beta.
You will have to implement your own UserDetailsService. The UserDetailsService is used by Acegi to build the Authentication object, which contains the principal (this can be any object, but you will have to create a UserDetails Object). You will define the userdetailsservice as follows in your spring configuration (i've only worked with acegi on spring).



I haven't implemented this myself though.


Alternatively, it is also possible to use the setContext() method of the SecurityContextHolder. The SecurityContext object can be set to hold an Authentication object. Although, you would want to do this once (at login).
[ April 11, 2007: Message edited by: Abhi Vuyyuru ]
16 years ago
It will be helpful if you can post some code that you are trying to use.

By the way, Did you think of using RowSet instead of ResultSet? This will avoid building a new data structure.
AFAIK, currently only BEA Weblogic 10, Glassfish and Tomcat 6.0 (only servlet container) are the only application servers that support Java EE 5. I worked a little with Glassfish and found it quite easy to use. If you are just looking for a something to learn Java EE 5, I suggest Glassfish as it is light and easy to use as compared to Weblogic 10. Tomcat is only a Servlet container.
16 years ago
You have to use the JdbcTemplate class query(SQL, params, new MyRowMapper()). Where MyRowMapper is an implementation of the RowMapper, which will map individual rows to objects of your choice as shown below
For a detailed example, of all the classes involved, visit this blog post