Re: [Resin-interest] Problem when restoring sessions with file-store

2007-09-05 Thread Daniel López
Hi,

Well, I was able to isolate the problem from the Resin handling of 
sessions, so it seems there's something wrong with my class and Java 
serialization. The class that is shown in the error is not causing the 
problem on its own, that's why my first standalone tests worked, but it 
is stored inside the session wrapped in another class and this 
combination is somehow failing. I cannot test it outside Resin, as this 
class is created from information from HttpSession etc. but as I said 
the problem seems to be in the standard (de)serialization of that set of 
classes.

I tried serializing to XML and I ended up with an empty XML file, no 
errors reported, and serializing produces a file that looks fine but 
I'm unable to deserialize it.

I'll have to go back to CVS history and apply changes one by one to see 
what change triggers the error... oh well.

Thanks for your help,
D.

Scott Ferguson escribió:
 On Sep 4, 2007, at 10:27 AM, Daniel Lopez wrote:
 
 Hi,

 First thing I did was to clean up all the deployment directory, making
 sure the WEB-INF/sessions directory was removed, and session lifetime
 is 30min, so they shouldn't have survived all the weekend in any case
 :).

 I tried with Resin 3.1.2, just in case, and the result was the same. I
 downloaded Resin source and built the resin.jar from scratch adding
 some debugging info and I ended up at the readObject() call. So it
 seems for some weird reason that de-serialising that object inside a
 Session fails. However, I tested the serialise/de-serialise process
 using the same JVM on the class giving the errors and I had no problem
 doing it. Weird.
 
 Can you try changing the serialization-type to hessian:
 
 session-config serialization-type=hessian/
 
 I'm not sure that it will change anything, but it might give a  
 different error message that might help.
 
 Is the srun.db file in some kind of format one can easily grasp?
 
 Not really.  It's a virtual filesystem/database-row structure.  There  
 are inodes and fragments, and indirect blocks and all sorts of nasty  
 things.
 
 (It does support a JDBC API, though.  So if the hessian change  
 doesn't give enough information you could copy it to another  
 directory,  and launch a jdbc driver  
 com.caucho.db.jdbc.ConnectionPoolDataSourceImpl with pathfoo/ 
 path.  I wouldn't recommend it, but it's possible.)
 
 -- Scott



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Problem when restoring sessions with file-store - SOLVED

2007-09-05 Thread Daniel López
Hi,

All right, I found the problem in an seemengly unrelated class but that 
was being serialized through references. The error message was quite 
misleading, but going step-by-step through the latest CVS commits I was 
able to isolate the class.
There was a bug in that class in the custom serialization process to 
rebuild some transient fields, and that was affecting how other classes 
in the same stream were being serialised, hence the misleading error 
message.
Thanks for the suggestions and my apologies for the false alarm :).
Cheers!
D.

Daniel López escribió:
 Hi,
 
 Well, I was able to isolate the problem from the Resin handling of 
 sessions, so it seems there's something wrong with my class and Java 
 serialization. The class that is shown in the error is not causing the 
 problem on its own, that's why my first standalone tests worked, but it 
 is stored inside the session wrapped in another class and this 
 combination is somehow failing. I cannot test it outside Resin, as this 
 class is created from information from HttpSession etc. but as I said 
 the problem seems to be in the standard (de)serialization of that set of 
 classes.
 
 I tried serializing to XML and I ended up with an empty XML file, no 
 errors reported, and serializing produces a file that looks fine but 
 I'm unable to deserialize it.
 
 I'll have to go back to CVS history and apply changes one by one to see 
 what change triggers the error... oh well.
 
 Thanks for your help,
 D.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] help with thread limits = can't break 480

2007-09-05 Thread Adam Allgaier
We're running Resin 3.0.20 on Apache 2 on FreeBSD 6, we seem to be hitting a 
java thread limit at 480 during peak times.

Resin config:
  thread-pool
thread-max800/thread-max
spare-thread-min50/spare-thread-min
  /thread-pool
  server
keepalive-max1600/keepalive-max
keepalive-timeout120s/keepalive-timeout
.

Apache config:

IfModule prefork.c

StartServers 20

ServerLimit   2000

MinSpareServers  5

MaxSpareServers 10

MaxClients 800

MaxRequestsPerChild  0

/IfModule

Any ideas why the java resin thread count cannot pass 480?  Increasing JVM 
memory settings has had no effect.

Thanks for your help in advance,
Adam




  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] help with thread limits = can't break 480

2007-09-05 Thread Joe Dane

guessing: maybe a system limit, a la ulimit, or perhaps a kernel  
configuration parameter?

On Sep 5, 2007, at 9:08 AM, Adam Allgaier wrote:

 We're running Resin 3.0.20 on Apache 2 on FreeBSD 6, we seem to be  
 hitting a java thread limit at 480 during peak times.

 Resin config:
   thread-pool
 thread-max800/thread-max
 spare-thread-min50/spare-thread-min
   /thread-pool
   server
 keepalive-max1600/keepalive-max
 keepalive-timeout120s/keepalive-timeout
 .

 Apache config:

 IfModule prefork.c

 StartServers 20

 ServerLimit   2000

 MinSpareServers  5

 MaxSpareServers 10

 MaxClients 800

 MaxRequestsPerChild  0

 /IfModule

 Any ideas why the java resin thread count cannot pass 480?   
 Increasing JVM memory settings has had no effect.

 Thanks for your help in advance,
 Adam





 __ 
 __
 Luggage? GPS? Comic books?
 Check out fitting gifts for grads at Yahoo! Search
 http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 

joe





___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest