|
From: Scott M. <sc...@so...> - 2006-07-06 23:04:38
|
Thank you for your suggestion. I believe that the application runs under = the same user when I run it as a console and when I run it as a daemon. The output from prstat is shown below. I have notated my application with = the arrow on the right. When run as a console: PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 3567 demo1 44M 19M sleep 59 0 0:00:18 0.0% java/13 <=3D=3D=3D =20 3545 demo1 2288K 1800K sleep 59 0 0:00:00 0.0% = wrapper-solaris/2 When run as a daemon: PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 3664 demo1 43M 17M run 0 0 0:01:23 98% java/13 <=3D=3D=3D 3663 demo1 2288K 1472K run 59 0 0:00:00 0.0% = wrapper-solaris/2 =20 One difference I notice is that the application is in a "sleep" state = (it has a TCP/IP listener so is asleep most of the time) when running as a console and is in a "run" state when running as a daemon. I can also see that the problem is not in the wrapper, but is in my application. It = also looks like it is running in priority 0 when running as a daemon. I'm not sure what that means and how I would affect the priority it runs in. Scott Myers sc...@so... -------------------------------------------- Does your app run as the same user that the console does? If not, try a = test to see if setting the user to be the same one you run the app as a = console as, and see if it still exhibits the 99% usage. If not, then the issue = is likely to be permissions of a user, and what they can/cannot get access = to (folders, ports etc.). That's one thing to try. -------------------------------------------- I have a java application that I am testing with the wrapper. It works great so far under Windows and also=20 under Solaris when run using the java -jar command and when run under = the wrapper in console mode. For some reason, when I run it on Solaris (SunOS 5.9) under the wrapper = as a daemon (start rather than=20 console), the application consumes all available CPU. prstat shows the application percentage rapidly=20 climbing to 99% and staying there. Does anyone have any ideas why the application would use 0.1% of the CPU = on a Solaris system in console=20 mode but 99% when run as a daemon (started)?=20 =20 Scott Myers sc...@so... (408) 973-8374 www.softwareassist.net <http://www.softwareassist.net/>=20 =20 =20 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=3Dwrapper-user/attachm= ents/ 20060706/d7cefef1/attachment.html=20 ------------------------------ Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 ------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user End of Wrapper-user Digest, Vol 2, Issue 7 ****************************************** |