[Clustering/JBoss] - [JBossCacheService] loadSession() while clustering
by praveenas
Hi ,
I am trying to cluster an application using 2 jboss 4.2.2.GA instances. It was running well on a single instance. When doing clustering and one of the server going down, I am getting the following error stack trace
14:23:26,265 ERROR [JBossCacheService] loadSession(): id: D1CA48C2BA26664FC38ACD4B43182D4A exception occurred during deserialization
java.lang.ArrayStoreException
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.util.HashMap.readObject(HashMap.java:1048)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.util.HashMap.readObject(HashMap.java:1048)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.readExternal(SessionBasedClusteredSession.java:154)
at org.jboss.web.tomcat.service.session.JBossCacheService.loadSession(JBossCacheService.java:278)
at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1010)
at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:782)
at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
at org.apache.catalina.connector.Request.getSession(Request.java:2075)
at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:91)
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:675)
Please let me know where exactly the problem might be.. and what modification is needed to be done.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166347#4166347
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166347
17 years, 9 months
[JBoss Messaging] - Re: JMS Benchmark
by mbrasier
Hi,
One of the reasons I included the time to open a connection is that I have found that developers often open a connection, send a single message and then close the connection.
All the test results are average figures, based on a large number of consecutive runs for a given scenario. For example, for sending 1000 messages, the client creates 5 threads, and each thread connects, sends 1000 messages, and disconnects, 1000 times.
I also ran each test 3 times (clearing the queue between each run) and used the third set of results, although this did not make a large difference.
So while I cannot be certain that the tests have achieved 'steady state', I hope that any overheads factor out to some extent. Also, as I am really performing these tests in order to provide a baseline for later tuning benchmarks.
Matt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166341#4166341
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166341
17 years, 9 months
[JBoss Cache: Core Edition] - Re: Stress Tests
by lovelyliatroim
Ok this is is tried with the latest 2.2 CR6, I just replaced the core lib the rest of the libraries belong to the 2.1 release,dont think it should make a difference.
Updated to the latest JBoss Cache 2.2 CR6 VM Sizes
* Create cache with 100,000 records, heap size = 42MB with ISOLATION set to "NONE"
* Create cache with 100,000 records, heap size = 82MB with ISOLATION set to "READ_UNCOMMITTED"
* Create cache with 200,000 records, heap size = 68MB with ISOLATION set to "NONE"
* Create cache with 200,000 records, heap size = 150MB with ISOLATION set to "READ_UNCOMMITTED"
* Create cache with 300,000 records, heap size = 98MB with ISOLATION set to "NONE"
* Create cache with 300,000 records, heap size = 225MB with ISOLATION set to "READ_UNCOMMITTED"
Still interesting that the heap size doubles just because i have a different ISOLATION level.
Will get the profiler set up and see what it says.........jmap aint working for me on bindows.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166334#4166334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166334
17 years, 9 months