Mantis - Resin
Viewing Issue Advanced Details
967 major always 03-01-06 04:03 03-06-06 14:02
flausa  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0000967: Performance issue
When runing 3.0.18 Pro with an valid license in our production site it is choking up rather quickly and the response time of our JSP-pages is increasing rapidly to some ten of seconds. Even if we get a log printout that the JNI library is enabled the symptom feels exactly like as when you run a Resin Pro without the JNI enabled on a site with "many" users.

There was no errors during installation and the site is working (responding)normaly (fast) with only one user but as soon as we put some load on the response time increases dramatically. When switching to our previous version 3.0.16 the response time is back to normal under the same amount of load.

Technical info:
JRE 1.4.2_03
Linux RH 2.1 ES
Oracle 9i

Notes
(0000911)
doc   
03-01-06 13:16   
The Resin status servlet shows -1 in the Select column in the TCP Ports section.
(0000914)
rudy   
03-03-06 04:30   
Scott,

I asked Niclas to try to enable the select-manager.
This is the result in stdout:

[2006-03-03 12:38:29.258] Servlet[init] started
[2006-03-03 12:38:29.261] WebApp[http://localhost:8081] [^] active
[2006-03-03 12:38:29.261] ServletServer clearCache
[2006-03-03 12:38:29.267] WebAppController$25840096[] active
[2006-03-03 12:38:29.267]
WebAppAdmin[resin:Host=default,Server=default,name=/,type=WebApp]
lifecycleEvent `active'
[2006-03-03 12:38:29.268] Host[] active
[2006-03-03 12:38:29.268] HostController[] active
[2006-03-03 12:38:29.268] HostAdmin[] lifecycleEvent `active'
[2006-03-03 12:38:29.269] closing Port[null:8081]
[2006-03-03 12:38:29.270] unregistered
resin:Server=default,port=8081,type=Port
[2006-03-03 12:38:29.272] closed Port[null:8081]
[2006-03-03 12:38:29.273] java.lang.IllegalStateException: Cannot load
select manager
[2006-03-03 12:38:29.273] at
com.caucho.server.port.Port.start(Port.java:745)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ServletServer.startPorts(ServletServer.java:1026
)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ServletServer.start(ServletServer.java:955)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.DeployController.startImpl(DeployController.jav
a:587)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(Abstract
DeployControllerStrategy.java:56)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.DeployController.start(DeployController.java:48
3)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ResinServer.start(ResinServer.java:478)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.Resin.init(Resin.java)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.Resin.main(Resin.java:623)
[2006-03-03 12:38:29.273] java.lang.IllegalStateException: Cannot load
select manager
[2006-03-03 12:38:29.273] at
com.caucho.server.port.Port.start(Port.java:745)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ServletServer.startPorts(ServletServer.java:1026
)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ServletServer.start(ServletServer.java:955)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.DeployController.startImpl(DeployController.jav
a:587)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(Abstract
DeployControllerStrategy.java:56)
[2006-03-03 12:38:29.273] at
com.caucho.server.deploy.DeployController.start(DeployController.java:48
3)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.ResinServer.start(ResinServer.java:478)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.Resin.init(Resin.java)
[2006-03-03 12:38:29.273] at
com.caucho.server.resin.Resin.main(Resin.java:623)

The server starts (processes alive) but does not respond at all from
browser. Do you know why it act like this?

Regards
//Niclas
(0000916)
ferg   
03-06-06 14:02   
enable-select-manager was initialized in incorrect order.

The temporary workaround is to increase thread-max to something large, like 1024 to handle the keepalive threads.