[Resin-interest] (no subject)

2007-03-21 Thread sksamuel
Noticed a couple of these in my logs on restart:



[07:13:07.565] javax.servlet.ServletException: 
java.lang.NullPointerException
[07:13:07.565]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:618)
[07:13:07.565]  at 
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)
[07:13:07.565]  at 
com.caucho.server.webapp.Application.start(Application.java:1654)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[07:13:07.565]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[07:13:07.565]  at 
com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
[07:13:07.565]  at com.caucho.server.host.Host.start(Host.java:420)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[07:13:07.565]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[07:13:07.565]  at 
com.caucho.server.host.HostContainer.start(HostContainer.java:504)
[07:13:07.565]  at 
com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[07:13:07.565]  at 
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[07:13:07.565]  at 
com.caucho.server.deploy.DeployController.start(DeployController.java:517)
[07:13:07.565]  at 
com.caucho.server.resin.ResinServer.start(ResinServer.java:551)
[07:13:07.565]  at com.caucho.server.resin.Resin.init(Resin.java)
[07:13:07.565]  at com.caucho.server.resin.Resin.main(Resin.java:625)
[07:13:07.565] Caused by: java.lang.NullPointerException
[07:13:07.565]  at java.io.File.init(File.java:222)
[07:13:07.565]  at 
com.frequencygroup.database.configFactory.init(configFactory.java:51)
[07:13:07.565]  at 
com.frequencygroup.database.configFactory.init(configFactory.java:27)
[07:13:07.565]  at 
com.frequencygroup.database.configFactory.getInstance(configFactory.java:35)
[07:13:07.565]  at 
com.frequencygroup.sitemanager.userManager.init(userManager.java:30)
[07:13:07.565]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
[07:13:07.565]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
[07:13:07.565]  ... 20 more 



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


Re: [Resin-interest] Too many open files

2007-03-14 Thread sksamuel
I'm assuming this is on Linux or something else that's Unixy.  You can 
find out what your limit for open files is by typing ulimit -a. 
Here's an example from one of my systems:

.

Do a man bash and search for ulimit if you want more details.





Thanks very much for your help Jose.

Sam.


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


[Resin-interest] An interesting memory leak

2006-12-08 Thread sksamuel
Here is an interesting one,

If I package my application up as a JAR and put it in WEB-INF/lib then I get 
memory leaks in the perm gen space as none of the Class objects are garbage 
collected. This is easily re-producable every time. If however I put the 
application's .class files inside WEB-INF/class and don't bother with the 
JAR then it will work fine, no memory leaks, runs forever.

Any ideas on what I'm doing wrong or if there is some subtle issue with 
classloaders here that I don't understand ? 


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


Re: [Resin-interest] resin-interest Digest, Vol 6, Issue 8

2006-12-08 Thread sksamuel
 If what you describe is really happening, it's gotta be nominated for
 the Bizzaro Bug of the Month or something. :-)

 You're sure the perm space is being exhausted? Are you using -XX:
 +PrintGCDetails or something similar to see the results of gc's on
 the perm space?

Yes of course. and -XX:+TraceClassUnloading so I can see that they do get 
unloaded when deployed in the classes dir. I'll send you my jar see if it 
happens on yours too ? 


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


[Resin-interest] deadlocks

2006-10-12 Thread sksamuel
I'm getting this deadlock on my resin servers.

does anyone know if I disable logging completely in resin will that stop
this happening or will all I do is just stop the outputting to the file ?

My servers are crashing daily (at least) so its getting to be a major 
earbashing issue for me now.



Found one Java-level deadlock:
=
resin-2140:
waiting to lock monitor 0x0975151c (object 0x834aff58, a
com.caucho.vfs.WriteStream),
which is held by resin-tcp-connection-*:80-570
resin-tcp-connection-*:80-570:
waiting to lock monitor 0x094d1a8c (object 0x833d7c48, a
java.io.PrintStream),
which is held by resin-2140


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