|
From: Leif M. <le...@ta...> - 2004-02-05 18:44:56
|
Jeffrey, Did you even look at the log file that you just sent me? You are getting massive quantities of the following exception printed to the log file: INFO | jvm 1 | 2004/02/12 09:21:04 | >Exceptionjava.io.IOException: System.in can not be used when the JVM is being controlled by the Java Service Manager. INFO | jvm 1 | 2004/02/12 09:21:04 | >Exceptionjava.io.IOException: System.in can not be used when the JVM is being controlled by the Java Service Manager. INFO | jvm 1 | 2004/02/12 09:21:04 | >Exceptionjava.io.IOException: System.in can not be used when the JVM is being controlled by the Java Service Manager. INFO | jvm 1 | 2004/02/12 09:21:04 | >Exceptionjava.io.IOException: System.in can not be used when the JVM is being controlled by the Java Service Manager. This log entry would have been visible even before you enabled debug output. As the exception states, the current version of the Wrapper does not allow you to read input from System.in. This is due to the way stdin, stdout, and stderr are mapped over to the Wrapper process. Most likely you have a thread that is thrashing trying to read from System.in That is what is eating up all of your CPU. Cheers, Leif Jeffrey Hawley wrote: > Leif, > > Sorry that I took so long to get back to you. I tried setting the > priority to medium, then low, and last normal and the CPU usage was > still 100%. I then added in the line wrapper.debug=true. I have > attached the log file that includes installing, starting and then > stopping the service while this line was in my .conf file. I look > forward to hearing from you. Thank you. > > Jeffrey > >> From: Leif Mortenson <le...@ta...> >> Reply-To: wra...@li... >> To: wra...@li... >> CC: jef...@ho... >> Subject: Re: [Wrapper-user] Wrapper using 100 percent cpu >> Date: Sat, 31 Jan 2004 12:26:22 +0900 >> >> Jeffrey, >> My answer is the same as to your previous yesterday. The SF servers have >> been acting up the last few days. It may just be taking some time for >> the replies >> to come through. I'll CC you on this reply. >> >> The problem is most likely the following configuration. >> wrapper.ntservice.process_priority=HIGH >> >> As explained in the docs, this would explain why your user processes >> are not >> able to stop the service. Try commenting out that line and rerunning. >> Let me >> know what happens. That shouldn't change the fact that your app is using >> 100% >> CPU, but it should let you control it. >> >> This mail says that the Wrapper uses 100% CPU when running as a service. >> What happens when you run the Wrapper in console mode? >> >> Could you then take a look at your task manager and verify which >> process is >> eating all that CPU. The Wrapper or java process. They will both be >> running >> at the same priority. In my experience, I have never seen the Wrapper >> process >> even register. The Java process will only use CPU if the user code is >> doing so. >> The Wrapper classes are also very light weight. >> >> If that does not point you toward the solution, then please set the >> following >> property to enable debug output and then post the resulting log file. On >> list >> if small or to me directly if large. >> wrapper.debug=true >> >> Cheers, >> Leif >> >> Jeffrey Hawley wrote: >> >> > Hello All~ >> > >> > I have recently configured PointBase Database to run as an NT service >> > using wrapper. I have included my wrapper.conf file below and after >> > installing PointBase I had to create the bin, conf and lib directories >> > to store the appropriate files. I am running this on a Windows XP >> > platform, but will evcentaully be placing it on a Windows Server 2003 >> > platform. Wrapper installs the service fine, but when I start the >> > service it uses 97% of my CPU resources. >> > I usually start the PointBase Server from the command prompt which >> > allows admins to view current connections, list current system locks, >> > and stop the server(how i currently kill it). Any help is much >> > appreciated. Thanks in advance - Jeff. >> > >> > #******************************************************************** >> > # Wrapper Properties >> > #******************************************************************** >> > wrapper.java.command=C:\j2sdk1.4.1_04\bin\java >> > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp >> > wrapper.java.classpath.1=C:\pointbase\lib\wrapper.jar >> > wrapper.java.classpath.2=C:\pointbase\lib\wrappertest.jar >> > wrapper.java.classpath.3=C:\pointbase\lib\pbembedded47ev.jar >> > wrapper.java.classpath.4=C:\pointbase\lib\pbtools47ev.jar >> > wrapper.java.classpath.5=C:\pointbase\lib\POsqlserver47ev.jar >> > wrapper.java.classpath.6=C:\pointbase\lib\POutil47ev.jar >> > wrapper.java.classpath.7=C:\pointbase\lib\pbunisyncCore47ev.jar >> > wrapper.java.classpath.8=C:\pointbase\lib\pbunisyncMIDPClient47ev.jar >> > wrapper.java.classpath.9=C:\pointbase\lib\pbunisyncSQLServer47ev.jar >> > wrapper.java.classpath.10=C:\pointbase\lib\pbunisyncTools47ev.jar >> > wrapper.java.classpath.11=C:\pointbase\tools\unisync\lax.jar >> > wrapper.java.library.path.1=C:\pointbase\lib >> > >> wrapper.java.additional.1=-Dpointbase.ini=C:\pointbase\tools\serveroption\pointbase.ini >> >> > >> > wrapper.java.initmemory=3 >> > wrapper.java.maxmemory=64 >> > wrapper.app.parameter.1=com.pointbase.net.netServer >> > >> > #******************************************************************** >> > # Wrapper Logging Properties >> > #******************************************************************** >> > wrapper.console.format=PM >> > wrapper.console.loglevel=INFO >> > wrapper.logfile=C:\pointbase\logs\wrapper.log >> > wrapper.logfile.format=LPTM >> > wrapper.logfile.loglevel=INFO >> > wrapper.logfile.maxsize=0 >> > wrapper.logfile.maxfiles=0 >> > wrapper.syslog.loglevel=NONE >> > >> > #******************************************************************** >> > # Wrapper NT Service Properties >> > #******************************************************************** >> > wrapper.ntservice.name=PointBaseDB >> > wrapper.ntservice.displayname=PointBaseDB >> > wrapper.ntservice.description=Runs the PointBase database as an NT >> > Service >> > wrapper.ntservice.dependency.1= >> > wrapper.ntservice.starttype=AUTO_START >> > wrapper.ntservice.interactive=false >> > wrapper.ntservice.process_priority=HIGH >> > wrapper.ntservice.interactive=false >> >> >> >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by EclipseCon 2004 >> Premiere Conference on Open Tools Development and Integration >> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >> http://www.eclipsecon.org/osdn >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > _________________________________________________________________ > Let the new MSN Premium Internet Software make the most of your > high-speed experience. > http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 |