You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Hayes, P. <Pet...@fm...> - 2008-08-01 13:38:12
|
It would be very convenient if the list actions that are supported by the script be augmented to include debug. The configuration could then support a new value called wrapper.debug.arguments which would be used to launch the jvm in debug mode. I think this would be pretty straightforward to add and be much easier on the end user than having to modify the configuration file to enable JVM debugging. Thoughts? Thanks, Peter Hayes Architecture & Shared Technology Services | Fidelity Investments Management Technology |
|
From: Isenberg, H. <ise...@e-...> - 2008-07-31 13:45:57
|
Is it possible to disable the automatic restart on VM-crashes while letting the manual restart function via wrapper.on_exit.N enabled? For Desktop applications the automatic restart might be a good thing, but it is not for backend server which require manual intervention after a crash of the Java-VM to prevent data corruption or inconsistency. At the same time, the manual restart is especially nice for server systems where the user has no access to the system console. |
|
From: Leif M. <le...@ta...> - 2008-07-30 17:04:12
|
Peter, It is possible, but the default shell script will have to be modified. Basically, you have to modify the command line to launch the Wrapper process within the script. Any Wrapper configuration property can be specified from the command line so you would have modify that command line to include the necessary wrapper.java.additional.n properties. http://wrapper.tanukisoftware.org/doc/english/props-command-line.html http://wrapper.tanukisoftware.org/doc/english/prop-java-additional-n.html Granted this would be complicated if the number of possible command line parameters is variable. If you thought you could have up to 10 for example, you would have to give those 10 properties default values like: wrapper.java.additional.1=-Dfoo1=foo wrapper.java.additional.2=-Dfoo2=foo wrapper.java.additional.3=-Dfoo3=foo I will try to think of a cleaner way of allowing this in a future version. Cheers, Leif On Thu, Jul 31, 2008 at 1:53 AM, Hayes, Peter <Pet...@fm...> wrote: > Is it possible to start a wrapper application specifying additional vm > parameters and application arguments to the process on the command line? > > I'd like to do something like this : > > app -Dlog.level=DEBUG start -file path/to/file.txt > > The syntax would be : > > <script> [jvm argument]... (start|console) [argument]... > > Thanks, > > Peter Hayes > Architecture & Shared Technology Services | Fidelity Investments > Management Technology > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Hayes, P. <Pet...@fm...> - 2008-07-30 16:53:49
|
Is it possible to start a wrapper application specifying additional vm parameters and application arguments to the process on the command line? I'd like to do something like this : app -Dlog.level=DEBUG start -file path/to/file.txt The syntax would be : <script> [jvm argument]... (start|console) [argument]... Thanks, Peter Hayes Architecture & Shared Technology Services | Fidelity Investments Management Technology |
|
From: Neeraja K. <nee...@in...> - 2008-07-30 10:35:54
|
I am out of the office until 07/08/2008. I am in a training, available from 6AM to 9AM IST till 6th August 2008. Note: This is an automated response to your message "Re: [Wrapper-user] Wrong DIST_ARCH value on Mandriva 2008" sent on 30/7/08 12:44:34. This is the only notification you will receive while this person is away. |
|
From: papinade <pap...@gm...> - 2008-07-30 07:53:55
|
On Ubuntu 8.04 : 1) uname -a => Linux ubuntu64 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux 2) uname -p => unknown 3) uname -m => x86_64 4) uname -i => unknown 5) uname -o => GNU/Linux On Mandriva 2008 : 1) uname -a => Linux localhost 2.6.24.4-desktop586-1mnb #1 SMP Thu Mar 27 14:20:33 CET 2008 i686 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz GNU/Linux 2) uname -p => Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz 3) uname -m => i686 4) uname -i => unknown 5) uname -o => GNU/Linux Leif Mortenson-2 wrote: > > What happens if you execute each of the following on your system? > > 1) uname -a > 2) uname -p > Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz > 3) uname -m > 4) uname -i > 5) uname -o > > The script as is tries `uname -p`. If it is not unknown then it tries > `uname -m`. If your `uname -m` returns a useful value then I may > need to skip `uname -p` values containing spaces. > > Cheers, > Leif > -- View this message in context: http://www.nabble.com/Wrong-DIST_ARCH-value-on-Mandriva-2008-tp18713173p18727853.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <le...@ta...> - 2008-07-30 07:14:38
|
What happens if you execute each of the following on your system? 1) uname -a 2) uname -p Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz 3) uname -m 4) uname -i 5) uname -o The script as is tries `uname -p`. If it is not unknown then it tries `uname -m`. If your `uname -m` returns a useful value then I may need to skip `uname -p` values containing spaces. Cheers, Leif On Tue, Jul 29, 2008 at 11:16 PM, papinade <pap...@gm...> wrote: > > Hi, > > I have a issue with the var DIST_ARCH returning a value untreated in the > script.sh > > OS : Linux Mandriva 2008 i586 > > DIST_ARCH=`uname -p 2>/dev/null | tr [:upper:] [:lower:] | tr -d [:blank:]` > returns : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz > > This value does not match with no one 'if' or 'case' in the script. So, i > have the following error : > Unable to locate any of the following binaries: > /toto/bin/./wrapper-linux-intel(r)core(tm)2duocpue6750@2.66ghz-32 > /toto/bin/./wrapper-linux-intel(r)core(tm)2duocpue6750@2.66ghz-64 > /toto/bin/./wrapper > > I tested with Ubuntu 8.04 and i have not this issue. > > Is a patch planned for this ? > -- > View this message in context: http://www.nabble.com/Wrong-DIST_ARCH-value-on-Mandriva-2008-tp18713173p18713173.html > Sent from the Java Service Wrapper mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2008-07-30 01:59:53
|
Marcelo, Also in the mean time, if you kill -9 the Java process, the Wrapper will think it crashed and will thus restart it. If you kill the Wrapper with a standard 'kill', then it will shut down cleanly and shutdown the JVM normally. If you have the ignore signals setting on however then the Wrapper will ignore the SIGTERM signal. The Wrapper should be monitoring the existence of an anchor file however. If you delete that then the Wrapper should shutdown. As a last result, if you "kill -9" the Wrapper process, the JVM will left running. The Java side of the Wrapper however has some code in it to shut itself down after a default of 30 seconds if it ever loses contact with the Wrapper. You could also kill-9 the JVM as well after the Wrapper to force it to shutdown immediately as well. This is of course all work around ideas to avoid rebooting the system. 3.3.0 should have fixed your original problem. If not, let me know 3.3.1 is just around the corner. Cheers, Leif On Wed, Jul 30, 2008 at 10:49 AM, Leif Mortenson <le...@ta...> wrote: > Marcelo, > There have been a lot of issues resolved with 3.3.0. Have you had a > chance to try that version? > > * There were some shell script status problems in 3.2.3 when the full > path to the location of the wrapper binary was long. That may be the > problem you are encountering. > > * The error you are getting about not being able to load the JNI > library is most likely because you are using a 32-bit version of the > Wrapper with a 64-bit JVM. > > Cheers, > Leif > > On Mon, Jul 28, 2008 at 9:51 PM, Datacom - Marcelo > <ma...@da...> wrote: >> Hi, we are having a problem sometimes when we start a service in Java >> wrapper and verify with 'status' parameter it says the service is >> stopped but in fact it is running (it was indeed started by java wrapper >> but somehow java wrapper had lost contact with it). We cannot stop the >> service (java wrapper think it is stopped and refuses to stop it). We >> tried to kill the service but java wrapper restarts it. The only way we >> can stop it is restarting the machine. >> In fact we are using an amd 64 version of java wrapper in Solaris 10, >> version is 3.2.3 and we are getting this error in every service we started: >> >> STATUS | wrapper | 2008/07/25 15:06:04 | --> Wrapper Started as Daemon >> STATUS | wrapper | 2008/07/25 15:06:04 | Launching a JVM... >> INFO | jvm 1 | 2008/07/25 15:06:05 | Wrapper (Version 3.2.3) >> http://wrapper.tanukisoftware.org >> INFO | jvm 1 | 2008/07/25 15:06:05 | Copyright 1999-2006 Tanuki >> Software, Inc. All Rights Reserved. >> INFO | jvm 1 | 2008/07/25 15:06:05 | >> INFO | jvm 1 | 2008/07/25 15:06:05 | >> INFO | jvm 1 | 2008/07/25 15:06:05 | WARNING - Unable to load the >> Wrapper's native library 'libwrapper.so'. >> INFO | jvm 1 | 2008/07/25 15:06:05 | The file is located >> on the path at the following location but >> INFO | jvm 1 | 2008/07/25 15:06:05 | could not be loaded: >> INFO | jvm 1 | 2008/07/25 15:06:05 | /xxx/./libwrapper.so >> INFO | jvm 1 | 2008/07/25 15:06:05 | Please verify that >> the file is readable by the current user >> INFO | jvm 1 | 2008/07/25 15:06:05 | and that the file >> has not been corrupted in any way. >> INFO | jvm 1 | 2008/07/25 15:06:05 | One common cause of >> this problem is running a 32-bit version >> INFO | jvm 1 | 2008/07/25 15:06:05 | of the Wrapper with >> a 64-bit version of Java, or vica versa. >> INFO | jvm 1 | 2008/07/25 15:06:05 | This is a 64-bit JVM. >> INFO | jvm 1 | 2008/07/25 15:06:05 | Reported cause: >> INFO | jvm 1 | 2008/07/25 15:06:05 | >> /xxx/./libwrapper.so: ld.so.1: java: fatal: relocation error: >> R_AMD64_PC32: file /xxx/./libwrapper.so: symbol main: value >> 0x2802b5c0484 does not fit >> INFO | jvm 1 | 2008/07/25 15:06:05 | System signals will >> not be handled correctly. >> >> In most of the time this works well but when it goes crazy theres >> nothing we can do to stop the service. We need to know if is there a way >> to kill this service (preventing java wrapper to restart it) or if it is >> related to this error above how can we fix it. We tried to compile from >> source , download a pre-compiled version but the result is allways the same. >> >> Thanks in adavance. >> >> -- >> MARCELO Ribeiro >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > |
|
From: Leif M. <le...@ta...> - 2008-07-30 01:49:13
|
Marcelo, There have been a lot of issues resolved with 3.3.0. Have you had a chance to try that version? * There were some shell script status problems in 3.2.3 when the full path to the location of the wrapper binary was long. That may be the problem you are encountering. * The error you are getting about not being able to load the JNI library is most likely because you are using a 32-bit version of the Wrapper with a 64-bit JVM. Cheers, Leif On Mon, Jul 28, 2008 at 9:51 PM, Datacom - Marcelo <ma...@da...> wrote: > Hi, we are having a problem sometimes when we start a service in Java > wrapper and verify with 'status' parameter it says the service is > stopped but in fact it is running (it was indeed started by java wrapper > but somehow java wrapper had lost contact with it). We cannot stop the > service (java wrapper think it is stopped and refuses to stop it). We > tried to kill the service but java wrapper restarts it. The only way we > can stop it is restarting the machine. > In fact we are using an amd 64 version of java wrapper in Solaris 10, > version is 3.2.3 and we are getting this error in every service we started: > > STATUS | wrapper | 2008/07/25 15:06:04 | --> Wrapper Started as Daemon > STATUS | wrapper | 2008/07/25 15:06:04 | Launching a JVM... > INFO | jvm 1 | 2008/07/25 15:06:05 | Wrapper (Version 3.2.3) > http://wrapper.tanukisoftware.org > INFO | jvm 1 | 2008/07/25 15:06:05 | Copyright 1999-2006 Tanuki > Software, Inc. All Rights Reserved. > INFO | jvm 1 | 2008/07/25 15:06:05 | > INFO | jvm 1 | 2008/07/25 15:06:05 | > INFO | jvm 1 | 2008/07/25 15:06:05 | WARNING - Unable to load the > Wrapper's native library 'libwrapper.so'. > INFO | jvm 1 | 2008/07/25 15:06:05 | The file is located > on the path at the following location but > INFO | jvm 1 | 2008/07/25 15:06:05 | could not be loaded: > INFO | jvm 1 | 2008/07/25 15:06:05 | /xxx/./libwrapper.so > INFO | jvm 1 | 2008/07/25 15:06:05 | Please verify that > the file is readable by the current user > INFO | jvm 1 | 2008/07/25 15:06:05 | and that the file > has not been corrupted in any way. > INFO | jvm 1 | 2008/07/25 15:06:05 | One common cause of > this problem is running a 32-bit version > INFO | jvm 1 | 2008/07/25 15:06:05 | of the Wrapper with > a 64-bit version of Java, or vica versa. > INFO | jvm 1 | 2008/07/25 15:06:05 | This is a 64-bit JVM. > INFO | jvm 1 | 2008/07/25 15:06:05 | Reported cause: > INFO | jvm 1 | 2008/07/25 15:06:05 | > /xxx/./libwrapper.so: ld.so.1: java: fatal: relocation error: > R_AMD64_PC32: file /xxx/./libwrapper.so: symbol main: value > 0x2802b5c0484 does not fit > INFO | jvm 1 | 2008/07/25 15:06:05 | System signals will > not be handled correctly. > > In most of the time this works well but when it goes crazy theres > nothing we can do to stop the service. We need to know if is there a way > to kill this service (preventing java wrapper to restart it) or if it is > related to this error above how can we fix it. We tried to compile from > source , download a pre-compiled version but the result is allways the same. > > Thanks in adavance. > > -- > MARCELO Ribeiro > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: papinade <pap...@gm...> - 2008-07-29 14:28:43
|
Hi, In the script.sh : # If a 32-bit wrapper binary exists then it will work on 32 or 64 bit # platforms, if the 64-bit binary exists then the distribution most # likely wants to use long names. Otherwise, look for the default. I don't understand why the 32-bit wrapper binary is used even if we are on a 64-bit platform with a wrapper 64-bit available (Precision : 32 and 64 bits wrapper are available in my source code but 32 bits wrapper is always used...). I tested my application today on ubuntu 64 bits and an error occured due to the use of 32 bit wrapper. If i forced the use of 64 bits wrapped, it works... Why there is not a test on 32/64 bits platform to use the appropriate wrapper ? Thanks. -- View this message in context: http://www.nabble.com/Wrapper-32-bits-used-on-64-bits-platform-tp18713449p18713449.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: papinade <pap...@gm...> - 2008-07-29 14:16:49
|
Hi, I have a issue with the var DIST_ARCH returning a value untreated in the script.sh OS : Linux Mandriva 2008 i586 DIST_ARCH=`uname -p 2>/dev/null | tr [:upper:] [:lower:] | tr -d [:blank:]` returns : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz This value does not match with no one 'if' or 'case' in the script. So, i have the following error : Unable to locate any of the following binaries: /toto/bin/./wrapper-linux-intel(r)core(tm)2duocpue6750@2.66ghz-32 /toto/bin/./wrapper-linux-intel(r)core(tm)2duocpue6750@2.66ghz-64 /toto/bin/./wrapper I tested with Ubuntu 8.04 and i have not this issue. Is a patch planned for this ? -- View this message in context: http://www.nabble.com/Wrong-DIST_ARCH-value-on-Mandriva-2008-tp18713173p18713173.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Datacom - M. <ma...@da...> - 2008-07-28 13:19:46
|
Hi, we are having a problem sometimes when we start a service in Java wrapper and verify with 'status' parameter it says the service is stopped but in fact it is running (it was indeed started by java wrapper but somehow java wrapper had lost contact with it). We cannot stop the service (java wrapper think it is stopped and refuses to stop it). We tried to kill the service but java wrapper restarts it. The only way we can stop it is restarting the machine. In fact we are using an amd 64 version of java wrapper in Solaris 10, version is 3.2.3 and we are getting this error in every service we started: STATUS | wrapper | 2008/07/25 15:06:04 | --> Wrapper Started as Daemon STATUS | wrapper | 2008/07/25 15:06:04 | Launching a JVM... INFO | jvm 1 | 2008/07/25 15:06:05 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2008/07/25 15:06:05 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2008/07/25 15:06:05 | INFO | jvm 1 | 2008/07/25 15:06:05 | INFO | jvm 1 | 2008/07/25 15:06:05 | WARNING - Unable to load the Wrapper's native library 'libwrapper.so'. INFO | jvm 1 | 2008/07/25 15:06:05 | The file is located on the path at the following location but INFO | jvm 1 | 2008/07/25 15:06:05 | could not be loaded: INFO | jvm 1 | 2008/07/25 15:06:05 | /xxx/./libwrapper.so INFO | jvm 1 | 2008/07/25 15:06:05 | Please verify that the file is readable by the current user INFO | jvm 1 | 2008/07/25 15:06:05 | and that the file has not been corrupted in any way. INFO | jvm 1 | 2008/07/25 15:06:05 | One common cause of this problem is running a 32-bit version INFO | jvm 1 | 2008/07/25 15:06:05 | of the Wrapper with a 64-bit version of Java, or vica versa. INFO | jvm 1 | 2008/07/25 15:06:05 | This is a 64-bit JVM. INFO | jvm 1 | 2008/07/25 15:06:05 | Reported cause: INFO | jvm 1 | 2008/07/25 15:06:05 | /xxx/./libwrapper.so: ld.so.1: java: fatal: relocation error: R_AMD64_PC32: file /xxx/./libwrapper.so: symbol main: value 0x2802b5c0484 does not fit INFO | jvm 1 | 2008/07/25 15:06:05 | System signals will not be handled correctly. In most of the time this works well but when it goes crazy theres nothing we can do to stop the service. We need to know if is there a way to kill this service (preventing java wrapper to restart it) or if it is related to this error above how can we fix it. We tried to compile from source , download a pre-compiled version but the result is allways the same. Thanks in adavance. -- MARCELO Ribeiro |
|
From: Erik D. <eri...@gm...> - 2008-07-25 07:02:15
|
Hello! I'm trying to set up deployment for a couple of applications with Java Webstart. Additionally, the system administrators want service scripts. Searching the web I found this post http://www.mail-archive.com/lop...@li.../msg00008.html It refers to http://www.seajug.org/vqwiki/jsp/Wiki?JavaWebStartTips. but that link seems to be dead. Can this recipe be found someplace else? Or can someone give me some pointers as to how to set this up? Thanks in advance. :) -- Best regards, Erik Drolshammer |
|
From: Leif M. <le...@ta...> - 2008-07-25 01:52:48
|
Michael, What is the problem that you are encountering? As I recall, RMI requires that a security manager be configured. When running under the Wrapper, the wrapper is in effect calling your application code so it must be included in the security chain. The following FAQ gives an example of this. http://wrapper.tanukisoftware.org/doc/english/faq.html#5 Cheers, Leif On Fri, Jul 25, 2008 at 10:38 AM, Michael McFarland <mic...@ja...> wrote: > > We have a Java application that uses RMI to connect to our session façade EJBs (remote interfaces) running in our middle tier on JBoss. > > This works fine when we run JBoss on the server via the run.bat script but does not work when we run as a service using Wrapper. > Web pages work either way. > > Has anyone else seen this? Am I missing a "Java Additional Parameter" ? > > > Michael McFarland > Manager, The Applications Group, Computational Sciences The Jackson Laboratory 600 Main St. > Bar Harbor, Maine 04609 > 207.288.6796 > |
|
From: Dittmar G. <gr...@if...> - 2008-07-25 01:41:08
|
Dittmar Gross ist wegen Urlaub bis 25-Jul-2008 nicht per eMail zu erreichen. Bitte wenden Sie sich in dringenden Faellen an Telefon +49 (69) 7680 50, Telefax +49 (69) 7680 5333 oder eMail fi...@if... Dittmar Gross is not available via eMail until Jul-25-2008 because of vacation. In urgent cases please contact us directly by Telephone +49 (69) 7680 50, Fax +49 (69) 7680 5333 or eMail fi...@if... ---------------------------------------------------------------------------- i:FAO Group Clemensstrasse 9, 60487 Frankfurt am Main, Germany Tel +49 (69) 7680-50, Fax +49 (69) 7680-5100, eMail information at ifao.net, www.cytric.info i:FAO Group GmbH Sitz in Frankfurt am Main Eingetragen beim Amtsgericht Frankfurt am Main, HRB 73600 Geschaeftsfuehrer: Louis Arnitz, Karin Froese To view the disclaimer text, click here: www.ifao.net/disclaimer |
|
From: Michael M. <mic...@ja...> - 2008-07-25 01:40:41
|
We have a Java application that uses RMI to connect to our session façade EJBs (remote interfaces) running in our middle tier on JBoss. This works fine when we run JBoss on the server via the run.bat script but does not work when we run as a service using Wrapper. Web pages work either way. Has anyone else seen this? Am I missing a "Java Additional Parameter" ? Michael McFarland Manager, The Applications Group, Computational Sciences The Jackson Laboratory 600 Main St. Bar Harbor, Maine 04609 207.288.6796 |
|
From: Bob B. <bob...@gm...> - 2008-07-23 21:27:10
|
Trying out the Java Service Wrapper (e.g. 3.3.0 - Community Edition) and have been noticing a warning in the logs anytime I shut down the application (e.g. "JVM exited unexpectedly while stopping the application"). I did notice the comments about bug #945072 for a previous release (e.g. http://sourceforge.net/tracker/?func=detail&aid=945976&group_id=39428&atid=425187) , but I am not calling System.exit() (e.g. that I'm aware of) and this is just a test application (e.g. not doing much at this point, stops really quick). I am using method #3 as an integration method. Only thing I can think of that may be particular about my test application is that I am using an interrupt to stop the application (e.g. break out of a Selector loop). Anyways, just wondering if I should worry about this or just ignore it and move on. Thanks, Bob ---- The following log snippet comes from running under OSX. Same thing happens under Windows XP, although the noted warning message happens at a latter time under XP (e.g. right before the "Wrapper Stopped" STATUS message). ......... DEBUG | wrapperp | 2008/07/23 15:04:35 | read a packet PING : ping DEBUG | wrapperp | 2008/07/23 15:04:39 | send a packet PING : ping INFO | jvm 1 | 2008/07/23 15:04:39 | WrapperManager Debug: Received a packet PING : ping INFO | jvm 1 | 2008/07/23 15:04:39 | WrapperManager Debug: Send a packet PING : ping DEBUG | wrapperp | 2008/07/23 15:04:39 | read a packet PING : ping DEBUG | wrapper | 2008/07/23 15:04:43 | Signal trapped. Details: DEBUG | wrapper | 2008/07/23 15:04:43 | signal number=15 (SIGTERM), source="unknown" STATUS | wrapper | 2008/07/23 15:04:43 | TERM trapped. Shutting down. DEBUG | wrapper | 2008/07/23 15:04:43 | wrapperStopProcess(0) called. DEBUG | wrapper | 2008/07/23 15:04:43 | Sending stop signal to JVM DEBUG | wrapperp | 2008/07/23 15:04:43 | send a packet STOP : NULL DEBUG | wrapper | 2008/07/23 15:04:43 | Signal trapped. Details: DEBUG | wrapper | 2008/07/23 15:04:43 | signal number=20 (SIGCHLD), source="unknown" DEBUG | wrapper | 2008/07/23 15:04:43 | Received SIGCHLD, checking JVM process status. DEBUG | wrapper | 2008/07/23 15:04:43 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. WARN | wrapper | 2008/07/23 15:04:43 | JVM exited unexpectedly while stopping the application. INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: calling listener.stop() INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: Waiting for WrapperListener.stop runner thread to complete. INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: WrapperListener.stop runner thread started. INFO | jvm 1 | 2008/07/23 15:04:43 | 2008-07-23 15:04:43,074 68314 [WrapperListener_stop_runner] INFO com.rdb.servertest.ServerTest - Stopping.........0 INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: Send a packet STOP_PENDING : 60000 INFO | jvm 1 | 2008/07/23 15:04:43 | 2008-07-23 15:04:43,074 68314 [Thread-1] INFO com.rdb.servertest.ServerTest - Selector woke up......... INFO | jvm 1 | 2008/07/23 15:04:43 | 2008-07-23 15:04:43,074 68314 [Thread-1] INFO com.rdb.servertest.ServerTest - Shutting down. INFO | jvm 1 | 2008/07/23 15:04:43 | 2008-07-23 15:04:43,075 68315 [WrapperListener_stop_runner] INFO com.rdb.servertest.ServerTest - Stopped......... INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: WrapperListener.stop runner thread stopped. INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: returned from listener.stop() -> 0 INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: shutdownJVM(0) Thread:Wrapper-Connection INFO | jvm 1 | 2008/07/23 15:04:43 | WrapperManager Debug: Send a packet STOPPED : 0 STATUS | wrapper | 2008/07/23 15:04:43 | <-- Wrapper Stopped As far as my stop/start methods on my WrapperListener. public int stop( int exitCode ) { ServerTest.getLogger().log( Level.INFO, "Stopping........." + exitCode ); appThread.interrupt(); WrapperManager.signalStopping( 60000 ); try { appThread.join( 60000 ); } catch (InterruptedException ex) { ServerTest.getLogger().log( Level.INFO, "FYI, interrupt caught." ); } ServerTest.getLogger().log( Level.INFO, "Stopped........." ); return exitCode; } As far as what my application is doing at the time of shutting down (again, not much). public void doMain() { ... A bunch of initialization code .... while (!Thread.currentThread().isInterrupted()) { try { selector.select(); } catch (IOException ioe) { getLogger().log( Level.ERROR, "Exception caught in select statement", ioe ); break; } getLogger().log( Level.INFO, "Selector woke up........." ); ....Check what selector is ready and do something which is nothing at this point... } getLogger().log( Level.INFO, "Shutting down."); } |
|
From: <PFa...@qu...> - 2008-07-23 18:14:24
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>Leif,<br><br>I'm sorry, I failed to answer your question about CPU utilization. In short, we own the box. There are three categories of applications running on the box. The first category consists of windows-required services. The second category consists of the four instances of our application. Third category consists of OPNet (currently capturing every TCP request and logging them to local disk). OPNet is there to help diagnose the NAS issues that we encountered. There are no applications on the box that consume large amounts of CPU.<br><div><br>Patrick M. Farrell, PMP, CSM<br>Consultant Mentor<br>Quick Solutions, Inc.<br>A four time INC 500 winner!<br><a href="mailto:pfa...@qu...">pfa...@qu...</a><br><br><a href="mailto:pat...@jp..."></a><div><br></div><font color="#990099">-----wra...@li... wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>From: <a class="moz-txt-link-abbreviated" href="mailto:PFa...@qu...">PFa...@qu...</a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>Date: 07/23/2008 01:52PM<br>Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal from JVM<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Leif,<br><br>Here is the memory breakdown for each instance of the application ...<br><br><font face="Courier New,Courier,monospace" size="3">1150 </font> MB Heap<br>+ 200 MB Perm Gen<br>+ DLL Overhead<br>+ JVM Overhead<br><br>The box has a total of 16GB RAM. There are 4 instances of the application per box. Therefore we are only using half the available memory for the application. I have heard that Windows still pages quite a lot even though we have that much memory to play with. It might be interesting to tell Windows not to page anything to disk and see what happens. We are probably really close to the 2GB address space limit imposed by Windows 2003 Enterprise. Having said that, we believe that we recently encountered a scenario where the application attempted to access a memory address in excess of the 2GB address space limit. We could always use the /3GB switch in the Boot.ini file to increase the addressable memory, but the thought is that we should not need it.<br><br>With regard to the thread prioritization, we do not modify the priority of our threads.<br><font face="sans-serif" size="2"> </font><div><br>Patrick M. Farrell, PMP, CSM<br>Consultant Mentor<br>Quick Solutions, Inc.<br>A four time INC 500 winner!<br><a href="mailto:pfa...@qu...">pfa...@qu... </a><a href="mailto:pat...@jp..."></a><br><div><br></div><font color="#990099">-----wra...@li... wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li... </a><br>From: "Leif Mortenson" <a class="moz-txt-link-rfc2396E" href="mailto:le...@ta..."><le...@ta...> </a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li... </a><br>Date: 07/23/2008 03:45AM<br>Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal from JVM<br><br><font face="Courier New,Courier,monospace" size="3">Patrick,<br>I agree that it does not appear to be doing you any good. I am<br>wondering why you are needing to play with it it all thought.<br><br>What is the memory usage of your application vs the physical memory of<br>the machine? Is this being caused by swapping? Does your application<br>modify the thread priority of any of its threads? Are other<br>applications consuming lots of CPU?<br><br>It may be possible to improve the way the Wrapper operates under these<br>conditions if I can learn exactly what is happening.<br><br>Thanks,<br>Leif<br><br>On Wed, Jul 23, 2008 at 3:52 AM, <a class="moz-txt-link-rfc2396E" href="mailto:PFa...@qu..."><PFa...@qu...> </a> wrote:<br>> Leif,<br>><br>> Thank you for your reply. We will schedule the configuration changes as<br>> part of our next release.<br>><br>> Assuming that we continue to experience the same problem in the future, is<br>> there any reason why we would want to continue messing around with the value<br>> of the property (wrapper.ping.timeout) instead of turning off the<br>> functionality altogether by setting it to zero? I guess I don't see what<br>> benefit it is providing when we are not using the restart functionality.<br>><br>> Patrick M. Farrell, PMP, CSM<br>> Consultant Mentor<br>> Quick Solutions, Inc.<br>> A four time INC 500 winner!<br>> <a class="moz-txt-link-abbreviated" href="mailto:pfa...@qu...">pfa...@qu... </a><br>><br>> -----wra...@li... wrote: -----<br>><br>> To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li... </a><br>> From: "Leif Mortenson" <a class="moz-txt-link-rfc2396E" href="mailto:le...@ta..."><le...@ta...> </a><br>> Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li... </a><br>> Date: 07/22/2008 01:27PM<br>> Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal<br>> from JVM<br>><br>> Patrick,<br>> If you are having ping timeout problems, it is usually caused by the<br>> application using more memory than the system has available in<br>> Physical Memory. Java can get 100-1000x slower when the OS does even<br>> a little bit of swapping of its memory space. Unless you are changing<br>> thread priorities in your application, the Wrapper will generally not<br>> lose the ability to respond to pings even when the CPU usage is fairly<br>> high.<br>><br>> Regardless, the property needed to extend the amount of time the<br>> Wrapper will wait for the JVM is as you mentioned:<br>> wrapper.ping.timeout<br>><br>> You might want to try setting wrapper.debug=true. This will let you<br>> see exactly when pings are send and responded to.<br>><br>> If you are still getting the timeouts with a ping timeout of 900 then<br>> the JVM must be eating too much serial for more than 15minutes.<br>><br>> As a test, you might want to try setting the ping timeout of 1800.<br>><br>> Cheers,<br>> Leif<br>><br>> On Wed, Jul 23, 2008 at 2:18 AM, <a class="moz-txt-link-rfc2396E" href="mailto:PFa...@qu..."><PFa...@qu...> </a> wrote:<br>>> Hello,<br>>><br>>> The purpose of this post is to determine the most appropriate course of<br>>> action given our current situation.<br>>><br>>> Background:<br>>> The application is running the 3.3.0 x86 release of the Java Service<br>>> Wrapper<br>>> and using the WrapperSimpleApp main class at startup. The supporting<br>>> hardware has 8 CPUs running 4 instances of the application. The<br>>> processing<br>>> for this service is quite CPU and memory intensive. It is not uncommon<br>>> for<br>>> the CPU utilization on the box to reach 100% for 3-5 minutes at a time,<br>>> and<br>>> if four large files arrived in quick succession, the CPU utilization could<br>>> potentially be pegged for as long as 15 minutes.<br>>><br>>> Symptom:<br>>> The Java Service Wrapper is reporting that the JVM appears to be hung and<br>>> that the timeout expired while waiting on a signal from the JVM. The Java<br>>> Service Wrapper then shuts down the JVM even though we believe the<br>>> application is processing normally. Note: We have explicitly disabled<br>>> the<br>>> automatic restart functionality as we would like our existing monitoring<br>>> software to detect and report the problem with the instance of the<br>>> application. The following snippet is from the wrapper.log file:<br>>><br>>> ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out<br>>> waiting for signal from JVM.<br>>> STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting<br>>> down.<br>>> STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped<br>>><br>>> The wrapper configuration is as follows:<br>>><br>>> # -----------------------------------------------------------------<br>>> # This file contains the configuration for the Java Service Wrapper<br>>> # -----------------------------------------------------------------<br>>><br>>> # Set the name of the service.<br>>> wrapper.name=VPC Gen2 Capture Service 1<br>>><br>>> # Set the location of the wrapper log<br>>> wrapper.logfile=../logs/wrapper.1.log<br>>><br>>> # Set the java command line options.<br>>> wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data<br>>> wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml<br>>><br>>> wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\<br>>><br>>> wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false<br>>> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151<br>>> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false<br>>> wrapper.java.additional.7=-Xmx1150m<br>>> wrapper.java.additional.8=-Xms512m<br>>> wrapper.java.additional.9=-XX:MaxPermSize=192m<br>>> wrapper.java.additional.10=-server<br>>><br>>> # Set the application classpath.<br>>> # The application classpath must contain wrapper.jar!<br>>> wrapper.java.classpath.1=../lib/wrapper.jar<br>>> wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar<br>>> wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar<br>>><br>>> # -----------------------------------------------------------------<br>>> # The following properties should not need to be modified.<br>>> # -----------------------------------------------------------------<br>>><br>>> # Set the application classname and optionally any<br>>> # command-line parameters that must be passed.<br>>> wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication<br>>><br>>> # Set the Java Library Path.<br>>> wrapper.java.library.path.1=../lib<br>>><br>>> # Set the Java command.<br>>> wrapper.java.command=%JAVA_HOME%/bin/java<br>>><br>>> # Set the Java Service Wrapper main class.<br>>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp<br>>><br>>> # The following property instructs the Java Service Wrapper<br>>> # to append the system PATH to the java.library.path at<br>>> # runtime. This is used in order to load secondary DLLs.<br>>> wrapper.java.library.path.append_system_path=true<br>>><br>>> # Set the debug flag.<br>>> wrapper.debug=false<br>>><br>>> # Allow 5 minutes between pings<br>>> wrapper.ping.interval=300<br>>><br>>> # Do NOT try to restart the JVM<br>>> wrapper.disable_restarts=TRUE<br>>><br>>> # Number of seconds to wait for the ping to timeout<br>>> wrapper.ping.timeout=900<br>>><br>>> Our current thought is that we could set the value of the<br>>> wrapper.ping.timeout property to be zero. This should prevent the Java<br>>> Service Wrapper from attempting to ping the WrapperSimpleApp and<br>>> ultimately<br>>> prevent the false detection of a hung JVM which was causing the JVM to be<br>>> shut down in the middle of normal processing. Does that sound about<br>>> accurate?<br>>><br>>> Has anyone else out there experienced this or a similar problem? If so,<br>>> what was your solution? Is there an alternate property that I should be<br>>> focused on instead of the wrapper.ping.timeout property? I am aware of<br>>> the<br>>> wrapper.cpu.timeout property, but I have not seen any messages in the log<br>>> to<br>>> indicate that the wrapper has not received any CPU time for N seconds.<br>>><br>>> I would appreciate any input that you may have to offer.<br>>><br>>> Patrick M. Farrell, PMP, CSM<br>>> Consultant Mentor<br>>> Quick Solutions, Inc.<br>>> A four time INC 500 winner!<br>>> <a class="moz-txt-link-abbreviated" href="mailto:pfa...@qu...">pfa...@qu... </a><br>>><br>>> -------------------------------------------------------------------------<br>>> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>>> challenge<br>>> Build the coolest Linux based applications with Moblin SDK & win great<br>>> prizes<br>>> Grand prize is a trip for two to an Open Source event anywhere in the<br>>> world<br>>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/ </a><br>>> _______________________________________________<br>>> Wrapper-user mailing list<br>>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li... </a><br>>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user </a><br>>><br>>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>> prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/ </a><br>> _______________________________________________<br>> Wrapper-user mailing list<br>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li... </a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user </a><br>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>> prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/ </a><br>> _______________________________________________<br>> Wrapper-user mailing list<br>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li... </a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user </a><br>><br>><br><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/ </a><br>_______________________________________________<br>Wrapper-user mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li... </a><br><a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user </a><br></font> </blockquote><br></div></div></font> <font face="Courier New,Courier,monospace" size="3">-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a></font><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Wrapper-user mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br></font> </blockquote><br></div></div></FONT> |
|
From: <PFa...@qu...> - 2008-07-23 17:52:26
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>Leif,<br><br>Here is the memory breakdown for each instance of the application ...<br><br><font face="Courier New,Courier,monospace" size="3">1150</font> MB Heap<br>+ 200 MB Perm Gen<br>+ DLL Overhead<br>+ JVM Overhead<br><br>The box has a total of 16GB RAM. There are 4 instances of the application per box. Therefore we are only using half the available memory for the application. I have heard that Windows still pages quite a lot even though we have that much memory to play with. It might be interesting to tell Windows not to page anything to disk and see what happens. We are probably really close to the 2GB address space limit imposed by Windows 2003 Enterprise. Having said that, we believe that we recently encountered a scenario where the application attempted to access a memory address in excess of the 2GB address space limit. We could always use the /3GB switch in the Boot.ini file to increase the addressable memory, but the thought is that we should not need it.<br><br>With regard to the thread prioritization, we do not modify the priority of our threads.<br><font face="sans-serif" size="2"> </font><div><br>Patrick M. Farrell, PMP, CSM<br>Consultant Mentor<br>Quick Solutions, Inc.<br>A four time INC 500 winner!<br><a href="mailto:pfa...@qu...">pfa...@qu...</a><a href="mailto:pat...@jp..."></a><br><div><br></div><font color="#990099">-----wra...@li... wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>From: "Leif Mortenson" <a class="moz-txt-link-rfc2396E" href="mailto:le...@ta..."><le...@ta...></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>Date: 07/23/2008 03:45AM<br>Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal from JVM<br><br><font face="Courier New,Courier,monospace" size="3">Patrick,<br>I agree that it does not appear to be doing you any good. I am<br>wondering why you are needing to play with it it all thought.<br><br>What is the memory usage of your application vs the physical memory of<br>the machine? Is this being caused by swapping? Does your application<br>modify the thread priority of any of its threads? Are other<br>applications consuming lots of CPU?<br><br>It may be possible to improve the way the Wrapper operates under these<br>conditions if I can learn exactly what is happening.<br><br>Thanks,<br>Leif<br><br>On Wed, Jul 23, 2008 at 3:52 AM, <a class="moz-txt-link-rfc2396E" href="mailto:PFa...@qu..."><PFa...@qu...></a> wrote:<br>> Leif,<br>><br>> Thank you for your reply. We will schedule the configuration changes as<br>> part of our next release.<br>><br>> Assuming that we continue to experience the same problem in the future, is<br>> there any reason why we would want to continue messing around with the value<br>> of the property (wrapper.ping.timeout) instead of turning off the<br>> functionality altogether by setting it to zero? I guess I don't see what<br>> benefit it is providing when we are not using the restart functionality.<br>><br>> Patrick M. Farrell, PMP, CSM<br>> Consultant Mentor<br>> Quick Solutions, Inc.<br>> A four time INC 500 winner!<br>> <a class="moz-txt-link-abbreviated" href="mailto:pfa...@qu...">pfa...@qu...</a><br>><br>> -----wra...@li... wrote: -----<br>><br>> To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>> From: "Leif Mortenson" <a class="moz-txt-link-rfc2396E" href="mailto:le...@ta..."><le...@ta...></a><br>> Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>> Date: 07/22/2008 01:27PM<br>> Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal<br>> from JVM<br>><br>> Patrick,<br>> If you are having ping timeout problems, it is usually caused by the<br>> application using more memory than the system has available in<br>> Physical Memory. Java can get 100-1000x slower when the OS does even<br>> a little bit of swapping of its memory space. Unless you are changing<br>> thread priorities in your application, the Wrapper will generally not<br>> lose the ability to respond to pings even when the CPU usage is fairly<br>> high.<br>><br>> Regardless, the property needed to extend the amount of time the<br>> Wrapper will wait for the JVM is as you mentioned:<br>> wrapper.ping.timeout<br>><br>> You might want to try setting wrapper.debug=true. This will let you<br>> see exactly when pings are send and responded to.<br>><br>> If you are still getting the timeouts with a ping timeout of 900 then<br>> the JVM must be eating too much serial for more than 15minutes.<br>><br>> As a test, you might want to try setting the ping timeout of 1800.<br>><br>> Cheers,<br>> Leif<br>><br>> On Wed, Jul 23, 2008 at 2:18 AM, <a class="moz-txt-link-rfc2396E" href="mailto:PFa...@qu..."><PFa...@qu...></a> wrote:<br>>> Hello,<br>>><br>>> The purpose of this post is to determine the most appropriate course of<br>>> action given our current situation.<br>>><br>>> Background:<br>>> The application is running the 3.3.0 x86 release of the Java Service<br>>> Wrapper<br>>> and using the WrapperSimpleApp main class at startup. The supporting<br>>> hardware has 8 CPUs running 4 instances of the application. The<br>>> processing<br>>> for this service is quite CPU and memory intensive. It is not uncommon<br>>> for<br>>> the CPU utilization on the box to reach 100% for 3-5 minutes at a time,<br>>> and<br>>> if four large files arrived in quick succession, the CPU utilization could<br>>> potentially be pegged for as long as 15 minutes.<br>>><br>>> Symptom:<br>>> The Java Service Wrapper is reporting that the JVM appears to be hung and<br>>> that the timeout expired while waiting on a signal from the JVM. The Java<br>>> Service Wrapper then shuts down the JVM even though we believe the<br>>> application is processing normally. Note: We have explicitly disabled<br>>> the<br>>> automatic restart functionality as we would like our existing monitoring<br>>> software to detect and report the problem with the instance of the<br>>> application. The following snippet is from the wrapper.log file:<br>>><br>>> ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out<br>>> waiting for signal from JVM.<br>>> STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting<br>>> down.<br>>> STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped<br>>><br>>> The wrapper configuration is as follows:<br>>><br>>> # -----------------------------------------------------------------<br>>> # This file contains the configuration for the Java Service Wrapper<br>>> # -----------------------------------------------------------------<br>>><br>>> # Set the name of the service.<br>>> wrapper.name=VPC Gen2 Capture Service 1<br>>><br>>> # Set the location of the wrapper log<br>>> wrapper.logfile=../logs/wrapper.1.log<br>>><br>>> # Set the java command line options.<br>>> wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data<br>>> wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml<br>>><br>>> wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\<br>>><br>>> wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false<br>>> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151<br>>> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false<br>>> wrapper.java.additional.7=-Xmx1150m<br>>> wrapper.java.additional.8=-Xms512m<br>>> wrapper.java.additional.9=-XX:MaxPermSize=192m<br>>> wrapper.java.additional.10=-server<br>>><br>>> # Set the application classpath.<br>>> # The application classpath must contain wrapper.jar!<br>>> wrapper.java.classpath.1=../lib/wrapper.jar<br>>> wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar<br>>> wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar<br>>><br>>> # -----------------------------------------------------------------<br>>> # The following properties should not need to be modified.<br>>> # -----------------------------------------------------------------<br>>><br>>> # Set the application classname and optionally any<br>>> # command-line parameters that must be passed.<br>>> wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication<br>>><br>>> # Set the Java Library Path.<br>>> wrapper.java.library.path.1=../lib<br>>><br>>> # Set the Java command.<br>>> wrapper.java.command=%JAVA_HOME%/bin/java<br>>><br>>> # Set the Java Service Wrapper main class.<br>>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp<br>>><br>>> # The following property instructs the Java Service Wrapper<br>>> # to append the system PATH to the java.library.path at<br>>> # runtime. This is used in order to load secondary DLLs.<br>>> wrapper.java.library.path.append_system_path=true<br>>><br>>> # Set the debug flag.<br>>> wrapper.debug=false<br>>><br>>> # Allow 5 minutes between pings<br>>> wrapper.ping.interval=300<br>>><br>>> # Do NOT try to restart the JVM<br>>> wrapper.disable_restarts=TRUE<br>>><br>>> # Number of seconds to wait for the ping to timeout<br>>> wrapper.ping.timeout=900<br>>><br>>> Our current thought is that we could set the value of the<br>>> wrapper.ping.timeout property to be zero. This should prevent the Java<br>>> Service Wrapper from attempting to ping the WrapperSimpleApp and<br>>> ultimately<br>>> prevent the false detection of a hung JVM which was causing the JVM to be<br>>> shut down in the middle of normal processing. Does that sound about<br>>> accurate?<br>>><br>>> Has anyone else out there experienced this or a similar problem? If so,<br>>> what was your solution? Is there an alternate property that I should be<br>>> focused on instead of the wrapper.ping.timeout property? I am aware of<br>>> the<br>>> wrapper.cpu.timeout property, but I have not seen any messages in the log<br>>> to<br>>> indicate that the wrapper has not received any CPU time for N seconds.<br>>><br>>> I would appreciate any input that you may have to offer.<br>>><br>>> Patrick M. Farrell, PMP, CSM<br>>> Consultant Mentor<br>>> Quick Solutions, Inc.<br>>> A four time INC 500 winner!<br>>> <a class="moz-txt-link-abbreviated" href="mailto:pfa...@qu...">pfa...@qu...</a><br>>><br>>> -------------------------------------------------------------------------<br>>> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>>> challenge<br>>> Build the coolest Linux based applications with Moblin SDK & win great<br>>> prizes<br>>> Grand prize is a trip for two to an Open Source event anywhere in the<br>>> world<br>>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>>> _______________________________________________<br>>> Wrapper-user mailing list<br>>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br>>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br>>><br>>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>> prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>> _______________________________________________<br>> Wrapper-user mailing list<br>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>> prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>> _______________________________________________<br>> Wrapper-user mailing list<br>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br>><br>><br><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>Wrapper-user mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br></font> </blockquote><br></div></div></FONT> |
|
From: Isenberg, H. <ise...@e-...> - 2008-07-23 09:52:25
|
A high CPU usage of a Java application is most of the time caused by the Garbage Collector. Of course, only if it is not a calculation intensive program. The GC is the reason we see ping timeouts on our Java based server. Leif, is there any possibility to set the ping timeout values to a reasonable value so the Java VM can survive a 1min long Full GC pause occuring about once a day? I don't want to set the ping timeout that high, as then during normal usage the error detection via ping does not work anymore. > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf > Of Leif Mortenson > Sent: Wednesday, July 23, 2008 9:46 AM > To: wra...@li... > Subject: Re: [Wrapper-user] JVM appears hung: Timed out > waiting for signalfrom JVM > > Patrick, > I agree that it does not appear to be doing you any good. I am > wondering why you are needing to play with it it all thought. > > What is the memory usage of your application vs the physical memory of > the machine? Is this being caused by swapping? Does your application > modify the thread priority of any of its threads? Are other > applications consuming lots of CPU? > > It may be possible to improve the way the Wrapper operates under these > conditions if I can learn exactly what is happening. > > Thanks, > Leif > > On Wed, Jul 23, 2008 at 3:52 AM, <PFa...@qu...> wrote: > > Leif, > > > > Thank you for your reply. We will schedule the > configuration changes as > > part of our next release. > > > > Assuming that we continue to experience the same problem in > the future, is > > there any reason why we would want to continue messing > around with the value > > of the property (wrapper.ping.timeout) instead of turning off the > > functionality altogether by setting it to zero? I guess I > don't see what > > benefit it is providing when we are not using the restart > functionality. > > > > Patrick M. Farrell, PMP, CSM > > Consultant Mentor > > Quick Solutions, Inc. > > A four time INC 500 winner! > > pfa...@qu... > > > > -----wra...@li... wrote: ----- > > > > To: wra...@li... > > From: "Leif Mortenson" <le...@ta...> > > Sent by: wra...@li... > > Date: 07/22/2008 01:27PM > > Subject: Re: [Wrapper-user] JVM appears hung: Timed out > waiting for signal > > from JVM > > > > Patrick, > > If you are having ping timeout problems, it is usually caused by the > > application using more memory than the system has available in > > Physical Memory. Java can get 100-1000x slower when the OS > does even > > a little bit of swapping of its memory space. Unless you > are changing > > thread priorities in your application, the Wrapper will > generally not > > lose the ability to respond to pings even when the CPU > usage is fairly > > high. > > > > Regardless, the property needed to extend the amount of time the > > Wrapper will wait for the JVM is as you mentioned: > > wrapper.ping.timeout > > > > You might want to try setting wrapper.debug=true. This will let you > > see exactly when pings are send and responded to. > > > > If you are still getting the timeouts with a ping timeout > of 900 then > > the JVM must be eating too much serial for more than 15minutes. > > > > As a test, you might want to try setting the ping timeout of 1800. > > > > Cheers, > > Leif > > > > On Wed, Jul 23, 2008 at 2:18 AM, > <PFa...@qu...> wrote: > >> Hello, > >> > >> The purpose of this post is to determine the most > appropriate course of > >> action given our current situation. > >> > >> Background: > >> The application is running the 3.3.0 x86 release of the > Java Service > >> Wrapper > >> and using the WrapperSimpleApp main class at startup. The > supporting > >> hardware has 8 CPUs running 4 instances of the application. The > >> processing > >> for this service is quite CPU and memory intensive. It is > not uncommon > >> for > >> the CPU utilization on the box to reach 100% for 3-5 > minutes at a time, > >> and > >> if four large files arrived in quick succession, the CPU > utilization could > >> potentially be pegged for as long as 15 minutes. > >> > >> Symptom: > >> The Java Service Wrapper is reporting that the JVM appears > to be hung and > >> that the timeout expired while waiting on a signal from > the JVM. The Java > >> Service Wrapper then shuts down the JVM even though we believe the > >> application is processing normally. Note: We have > explicitly disabled > >> the > >> automatic restart functionality as we would like our > existing monitoring > >> software to detect and report the problem with the instance of the > >> application. The following snippet is from the wrapper.log file: > >> > >> ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears > hung: Timed out > >> waiting for signal from JVM. > >> STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts > disabled. Shutting > >> down. > >> STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped > >> > >> The wrapper configuration is as follows: > >> > >> # ----------------------------------------------------------------- > >> # This file contains the configuration for the Java Service Wrapper > >> # ----------------------------------------------------------------- > >> > >> # Set the name of the service. > >> wrapper.name=VPC Gen2 Capture Service 1 > >> > >> # Set the location of the wrapper log > >> wrapper.logfile=../logs/wrapper.1.log > >> > >> # Set the java command line options. > >> wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data > >> wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml > >> > >> > wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\ca > pture-services\ > >> > >> > wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authe > nticate=false > >> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151 > >> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false > >> wrapper.java.additional.7=-Xmx1150m > >> wrapper.java.additional.8=-Xms512m > >> wrapper.java.additional.9=-XX:MaxPermSize=192m > >> wrapper.java.additional.10=-server > >> > >> # Set the application classpath. > >> # The application classpath must contain wrapper.jar! > >> wrapper.java.classpath.1=../lib/wrapper.jar > >> wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar > >> wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar > >> > >> # ----------------------------------------------------------------- > >> # The following properties should not need to be modified. > >> # ----------------------------------------------------------------- > >> > >> # Set the application classname and optionally any > >> # command-line parameters that must be passed. > >> wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication > >> > >> # Set the Java Library Path. > >> wrapper.java.library.path.1=../lib > >> > >> # Set the Java command. > >> wrapper.java.command=%JAVA_HOME%/bin/java > >> > >> # Set the Java Service Wrapper main class. > >> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > >> > >> # The following property instructs the Java Service Wrapper > >> # to append the system PATH to the java.library.path at > >> # runtime. This is used in order to load secondary DLLs. > >> wrapper.java.library.path.append_system_path=true > >> > >> # Set the debug flag. > >> wrapper.debug=false > >> > >> # Allow 5 minutes between pings > >> wrapper.ping.interval=300 > >> > >> # Do NOT try to restart the JVM > >> wrapper.disable_restarts=TRUE > >> > >> # Number of seconds to wait for the ping to timeout > >> wrapper.ping.timeout=900 > >> > >> Our current thought is that we could set the value of the > >> wrapper.ping.timeout property to be zero. This should > prevent the Java > >> Service Wrapper from attempting to ping the WrapperSimpleApp and > >> ultimately > >> prevent the false detection of a hung JVM which was > causing the JVM to be > >> shut down in the middle of normal processing. Does that > sound about > >> accurate? > >> > >> Has anyone else out there experienced this or a similar > problem? If so, > >> what was your solution? Is there an alternate property > that I should be > >> focused on instead of the wrapper.ping.timeout property? > I am aware of > >> the > >> wrapper.cpu.timeout property, but I have not seen any > messages in the log > >> to > >> indicate that the wrapper has not received any CPU time > for N seconds. > >> > >> I would appreciate any input that you may have to offer. > >> > >> Patrick M. Farrell, PMP, CSM > >> Consultant Mentor > >> Quick Solutions, Inc. > >> A four time INC 500 winner! > >> pfa...@qu... > >> > >> > -------------------------------------------------------------- > ----------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK > & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event > anywhere in the > >> world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Wrapper-user mailing list > >> Wra...@li... > >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > >> > >> > > > > > -------------------------------------------------------------- > ----------- > > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > > Build the coolest Linux based applications with Moblin SDK > & win great > > prizes > > Grand prize is a trip for two to an Open Source event > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > > -------------------------------------------------------------- > ----------- > > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > > Build the coolest Linux based applications with Moblin SDK > & win great > > prizes > > Grand prize is a trip for two to an Open Source event > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Leif M. <le...@ta...> - 2008-07-23 07:45:50
|
Patrick, I agree that it does not appear to be doing you any good. I am wondering why you are needing to play with it it all thought. What is the memory usage of your application vs the physical memory of the machine? Is this being caused by swapping? Does your application modify the thread priority of any of its threads? Are other applications consuming lots of CPU? It may be possible to improve the way the Wrapper operates under these conditions if I can learn exactly what is happening. Thanks, Leif On Wed, Jul 23, 2008 at 3:52 AM, <PFa...@qu...> wrote: > Leif, > > Thank you for your reply. We will schedule the configuration changes as > part of our next release. > > Assuming that we continue to experience the same problem in the future, is > there any reason why we would want to continue messing around with the value > of the property (wrapper.ping.timeout) instead of turning off the > functionality altogether by setting it to zero? I guess I don't see what > benefit it is providing when we are not using the restart functionality. > > Patrick M. Farrell, PMP, CSM > Consultant Mentor > Quick Solutions, Inc. > A four time INC 500 winner! > pfa...@qu... > > -----wra...@li... wrote: ----- > > To: wra...@li... > From: "Leif Mortenson" <le...@ta...> > Sent by: wra...@li... > Date: 07/22/2008 01:27PM > Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal > from JVM > > Patrick, > If you are having ping timeout problems, it is usually caused by the > application using more memory than the system has available in > Physical Memory. Java can get 100-1000x slower when the OS does even > a little bit of swapping of its memory space. Unless you are changing > thread priorities in your application, the Wrapper will generally not > lose the ability to respond to pings even when the CPU usage is fairly > high. > > Regardless, the property needed to extend the amount of time the > Wrapper will wait for the JVM is as you mentioned: > wrapper.ping.timeout > > You might want to try setting wrapper.debug=true. This will let you > see exactly when pings are send and responded to. > > If you are still getting the timeouts with a ping timeout of 900 then > the JVM must be eating too much serial for more than 15minutes. > > As a test, you might want to try setting the ping timeout of 1800. > > Cheers, > Leif > > On Wed, Jul 23, 2008 at 2:18 AM, <PFa...@qu...> wrote: >> Hello, >> >> The purpose of this post is to determine the most appropriate course of >> action given our current situation. >> >> Background: >> The application is running the 3.3.0 x86 release of the Java Service >> Wrapper >> and using the WrapperSimpleApp main class at startup. The supporting >> hardware has 8 CPUs running 4 instances of the application. The >> processing >> for this service is quite CPU and memory intensive. It is not uncommon >> for >> the CPU utilization on the box to reach 100% for 3-5 minutes at a time, >> and >> if four large files arrived in quick succession, the CPU utilization could >> potentially be pegged for as long as 15 minutes. >> >> Symptom: >> The Java Service Wrapper is reporting that the JVM appears to be hung and >> that the timeout expired while waiting on a signal from the JVM. The Java >> Service Wrapper then shuts down the JVM even though we believe the >> application is processing normally. Note: We have explicitly disabled >> the >> automatic restart functionality as we would like our existing monitoring >> software to detect and report the problem with the instance of the >> application. The following snippet is from the wrapper.log file: >> >> ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out >> waiting for signal from JVM. >> STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting >> down. >> STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped >> >> The wrapper configuration is as follows: >> >> # ----------------------------------------------------------------- >> # This file contains the configuration for the Java Service Wrapper >> # ----------------------------------------------------------------- >> >> # Set the name of the service. >> wrapper.name=VPC Gen2 Capture Service 1 >> >> # Set the location of the wrapper log >> wrapper.logfile=../logs/wrapper.1.log >> >> # Set the java command line options. >> wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data >> wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml >> >> wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\ >> >> wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false >> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151 >> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false >> wrapper.java.additional.7=-Xmx1150m >> wrapper.java.additional.8=-Xms512m >> wrapper.java.additional.9=-XX:MaxPermSize=192m >> wrapper.java.additional.10=-server >> >> # Set the application classpath. >> # The application classpath must contain wrapper.jar! >> wrapper.java.classpath.1=../lib/wrapper.jar >> wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar >> wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar >> >> # ----------------------------------------------------------------- >> # The following properties should not need to be modified. >> # ----------------------------------------------------------------- >> >> # Set the application classname and optionally any >> # command-line parameters that must be passed. >> wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication >> >> # Set the Java Library Path. >> wrapper.java.library.path.1=../lib >> >> # Set the Java command. >> wrapper.java.command=%JAVA_HOME%/bin/java >> >> # Set the Java Service Wrapper main class. >> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp >> >> # The following property instructs the Java Service Wrapper >> # to append the system PATH to the java.library.path at >> # runtime. This is used in order to load secondary DLLs. >> wrapper.java.library.path.append_system_path=true >> >> # Set the debug flag. >> wrapper.debug=false >> >> # Allow 5 minutes between pings >> wrapper.ping.interval=300 >> >> # Do NOT try to restart the JVM >> wrapper.disable_restarts=TRUE >> >> # Number of seconds to wait for the ping to timeout >> wrapper.ping.timeout=900 >> >> Our current thought is that we could set the value of the >> wrapper.ping.timeout property to be zero. This should prevent the Java >> Service Wrapper from attempting to ping the WrapperSimpleApp and >> ultimately >> prevent the false detection of a hung JVM which was causing the JVM to be >> shut down in the middle of normal processing. Does that sound about >> accurate? >> >> Has anyone else out there experienced this or a similar problem? If so, >> what was your solution? Is there an alternate property that I should be >> focused on instead of the wrapper.ping.timeout property? I am aware of >> the >> wrapper.cpu.timeout property, but I have not seen any messages in the log >> to >> indicate that the wrapper has not received any CPU time for N seconds. >> >> I would appreciate any input that you may have to offer. >> >> Patrick M. Farrell, PMP, CSM >> Consultant Mentor >> Quick Solutions, Inc. >> A four time INC 500 winner! >> pfa...@qu... >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: <PFa...@qu...> - 2008-07-22 18:52:36
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>Leif,<br><br>Thank you for your reply. We will schedule the configuration changes as part of our next release. <br><br>Assuming that we continue to experience the same problem in the future, is there any reason why we would want to continue messing around with the value of the property (wrapper.ping.timeout) instead of turning off the functionality altogether by setting it to zero? I guess I don't see what benefit it is providing when we are not using the restart functionality.<br><div><br>Patrick M. Farrell, PMP, CSM<br>Consultant Mentor<br>Quick Solutions, Inc.<br>A four time INC 500 winner!<br><a href="mailto:pfa...@qu...">pfa...@qu...</a><br><br><font color="#990099">-----wra...@li... wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>From: "Leif Mortenson" <a class="moz-txt-link-rfc2396E" href="mailto:le...@ta..."><le...@ta...></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:wra...@li...">wra...@li...</a><br>Date: 07/22/2008 01:27PM<br>Subject: Re: [Wrapper-user] JVM appears hung: Timed out waiting for signal from JVM<br><br><font face="Courier New,Courier,monospace" size="3">Patrick,<br>If you are having ping timeout problems, it is usually caused by the<br>application using more memory than the system has available in<br>Physical Memory. Java can get 100-1000x slower when the OS does even<br>a little bit of swapping of its memory space. Unless you are changing<br>thread priorities in your application, the Wrapper will generally not<br>lose the ability to respond to pings even when the CPU usage is fairly<br>high.<br><br>Regardless, the property needed to extend the amount of time the<br>Wrapper will wait for the JVM is as you mentioned:<br>wrapper.ping.timeout<br><br>You might want to try setting wrapper.debug=true. This will let you<br>see exactly when pings are send and responded to.<br><br>If you are still getting the timeouts with a ping timeout of 900 then<br>the JVM must be eating too much serial for more than 15minutes.<br><br>As a test, you might want to try setting the ping timeout of 1800.<br><br>Cheers,<br>Leif<br><br>On Wed, Jul 23, 2008 at 2:18 AM, <a class="moz-txt-link-rfc2396E" href="mailto:PFa...@qu..."><PFa...@qu...></a> wrote:<br>> Hello,<br>><br>> The purpose of this post is to determine the most appropriate course of<br>> action given our current situation.<br>><br>> Background:<br>> The application is running the 3.3.0 x86 release of the Java Service Wrapper<br>> and using the WrapperSimpleApp main class at startup. The supporting<br>> hardware has 8 CPUs running 4 instances of the application. The processing<br>> for this service is quite CPU and memory intensive. It is not uncommon for<br>> the CPU utilization on the box to reach 100% for 3-5 minutes at a time, and<br>> if four large files arrived in quick succession, the CPU utilization could<br>> potentially be pegged for as long as 15 minutes.<br>><br>> Symptom:<br>> The Java Service Wrapper is reporting that the JVM appears to be hung and<br>> that the timeout expired while waiting on a signal from the JVM. The Java<br>> Service Wrapper then shuts down the JVM even though we believe the<br>> application is processing normally. Note: We have explicitly disabled the<br>> automatic restart functionality as we would like our existing monitoring<br>> software to detect and report the problem with the instance of the<br>> application. The following snippet is from the wrapper.log file:<br>><br>> ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out<br>> waiting for signal from JVM.<br>> STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting<br>> down.<br>> STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped<br>><br>> The wrapper configuration is as follows:<br>><br>> # -----------------------------------------------------------------<br>> # This file contains the configuration for the Java Service Wrapper<br>> # -----------------------------------------------------------------<br>><br>> # Set the name of the service.<br>> wrapper.name=VPC Gen2 Capture Service 1<br>><br>> # Set the location of the wrapper log<br>> wrapper.logfile=../logs/wrapper.1.log<br>><br>> # Set the java command line options.<br>> wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data<br>> wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml<br>> wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\<br>> wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false<br>> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151<br>> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false<br>> wrapper.java.additional.7=-Xmx1150m<br>> wrapper.java.additional.8=-Xms512m<br>> wrapper.java.additional.9=-XX:MaxPermSize=192m<br>> wrapper.java.additional.10=-server<br>><br>> # Set the application classpath.<br>> # The application classpath must contain wrapper.jar!<br>> wrapper.java.classpath.1=../lib/wrapper.jar<br>> wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar<br>> wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar<br>><br>> # -----------------------------------------------------------------<br>> # The following properties should not need to be modified.<br>> # -----------------------------------------------------------------<br>><br>> # Set the application classname and optionally any<br>> # command-line parameters that must be passed.<br>> wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication<br>><br>> # Set the Java Library Path.<br>> wrapper.java.library.path.1=../lib<br>><br>> # Set the Java command.<br>> wrapper.java.command=%JAVA_HOME%/bin/java<br>><br>> # Set the Java Service Wrapper main class.<br>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp<br>><br>> # The following property instructs the Java Service Wrapper<br>> # to append the system PATH to the java.library.path at<br>> # runtime. This is used in order to load secondary DLLs.<br>> wrapper.java.library.path.append_system_path=true<br>><br>> # Set the debug flag.<br>> wrapper.debug=false<br>><br>> # Allow 5 minutes between pings<br>> wrapper.ping.interval=300<br>><br>> # Do NOT try to restart the JVM<br>> wrapper.disable_restarts=TRUE<br>><br>> # Number of seconds to wait for the ping to timeout<br>> wrapper.ping.timeout=900<br>><br>> Our current thought is that we could set the value of the<br>> wrapper.ping.timeout property to be zero. This should prevent the Java<br>> Service Wrapper from attempting to ping the WrapperSimpleApp and ultimately<br>> prevent the false detection of a hung JVM which was causing the JVM to be<br>> shut down in the middle of normal processing. Does that sound about<br>> accurate?<br>><br>> Has anyone else out there experienced this or a similar problem? If so,<br>> what was your solution? Is there an alternate property that I should be<br>> focused on instead of the wrapper.ping.timeout property? I am aware of the<br>> wrapper.cpu.timeout property, but I have not seen any messages in the log to<br>> indicate that the wrapper has not received any CPU time for N seconds.<br>><br>> I would appreciate any input that you may have to offer.<br>><br>> Patrick M. Farrell, PMP, CSM<br>> Consultant Mentor<br>> Quick Solutions, Inc.<br>> A four time INC 500 winner!<br>> <a class="moz-txt-link-abbreviated" href="mailto:pfa...@qu...">pfa...@qu...</a><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>> prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>> _______________________________________________<br>> Wrapper-user mailing list<br>> <a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br>><br>><br><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>Wrapper-user mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Wra...@li...">Wra...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/wrapper-user">https://lists.sourceforge.net/lists/listinfo/wrapper-user</a><br></font> </blockquote><br></div></div></FONT> |
|
From: Leif M. <le...@ta...> - 2008-07-22 17:27:03
|
Patrick, If you are having ping timeout problems, it is usually caused by the application using more memory than the system has available in Physical Memory. Java can get 100-1000x slower when the OS does even a little bit of swapping of its memory space. Unless you are changing thread priorities in your application, the Wrapper will generally not lose the ability to respond to pings even when the CPU usage is fairly high. Regardless, the property needed to extend the amount of time the Wrapper will wait for the JVM is as you mentioned: wrapper.ping.timeout You might want to try setting wrapper.debug=true. This will let you see exactly when pings are send and responded to. If you are still getting the timeouts with a ping timeout of 900 then the JVM must be eating too much serial for more than 15minutes. As a test, you might want to try setting the ping timeout of 1800. Cheers, Leif On Wed, Jul 23, 2008 at 2:18 AM, <PFa...@qu...> wrote: > Hello, > > The purpose of this post is to determine the most appropriate course of > action given our current situation. > > Background: > The application is running the 3.3.0 x86 release of the Java Service Wrapper > and using the WrapperSimpleApp main class at startup. The supporting > hardware has 8 CPUs running 4 instances of the application. The processing > for this service is quite CPU and memory intensive. It is not uncommon for > the CPU utilization on the box to reach 100% for 3-5 minutes at a time, and > if four large files arrived in quick succession, the CPU utilization could > potentially be pegged for as long as 15 minutes. > > Symptom: > The Java Service Wrapper is reporting that the JVM appears to be hung and > that the timeout expired while waiting on a signal from the JVM. The Java > Service Wrapper then shuts down the JVM even though we believe the > application is processing normally. Note: We have explicitly disabled the > automatic restart functionality as we would like our existing monitoring > software to detect and report the problem with the instance of the > application. The following snippet is from the wrapper.log file: > > ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out > waiting for signal from JVM. > STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting > down. > STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped > > The wrapper configuration is as follows: > > # ----------------------------------------------------------------- > # This file contains the configuration for the Java Service Wrapper > # ----------------------------------------------------------------- > > # Set the name of the service. > wrapper.name=VPC Gen2 Capture Service 1 > > # Set the location of the wrapper log > wrapper.logfile=../logs/wrapper.1.log > > # Set the java command line options. > wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data > wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml > wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\ > wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false > wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151 > wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false > wrapper.java.additional.7=-Xmx1150m > wrapper.java.additional.8=-Xms512m > wrapper.java.additional.9=-XX:MaxPermSize=192m > wrapper.java.additional.10=-server > > # Set the application classpath. > # The application classpath must contain wrapper.jar! > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar > wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar > > # ----------------------------------------------------------------- > # The following properties should not need to be modified. > # ----------------------------------------------------------------- > > # Set the application classname and optionally any > # command-line parameters that must be passed. > wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication > > # Set the Java Library Path. > wrapper.java.library.path.1=../lib > > # Set the Java command. > wrapper.java.command=%JAVA_HOME%/bin/java > > # Set the Java Service Wrapper main class. > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > > # The following property instructs the Java Service Wrapper > # to append the system PATH to the java.library.path at > # runtime. This is used in order to load secondary DLLs. > wrapper.java.library.path.append_system_path=true > > # Set the debug flag. > wrapper.debug=false > > # Allow 5 minutes between pings > wrapper.ping.interval=300 > > # Do NOT try to restart the JVM > wrapper.disable_restarts=TRUE > > # Number of seconds to wait for the ping to timeout > wrapper.ping.timeout=900 > > Our current thought is that we could set the value of the > wrapper.ping.timeout property to be zero. This should prevent the Java > Service Wrapper from attempting to ping the WrapperSimpleApp and ultimately > prevent the false detection of a hung JVM which was causing the JVM to be > shut down in the middle of normal processing. Does that sound about > accurate? > > Has anyone else out there experienced this or a similar problem? If so, > what was your solution? Is there an alternate property that I should be > focused on instead of the wrapper.ping.timeout property? I am aware of the > wrapper.cpu.timeout property, but I have not seen any messages in the log to > indicate that the wrapper has not received any CPU time for N seconds. > > I would appreciate any input that you may have to offer. > > Patrick M. Farrell, PMP, CSM > Consultant Mentor > Quick Solutions, Inc. > A four time INC 500 winner! > pfa...@qu... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: <PFa...@qu...> - 2008-07-22 17:18:29
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>Hello,<br><br>The purpose of this post is to determine the most appropriate course of action given our current situation.<br><br>Background:<br>The application is running the 3.3.0 x86 release of the Java Service Wrapper and using the WrapperSimpleApp main class at startup. The supporting hardware has 8 CPUs running 4 instances of the application. The processing for this service is quite CPU and memory intensive. It is not uncommon for the CPU utilization on the box to reach 100% for 3-5 minutes at a time, and if four large files arrived in quick succession, the CPU utilization could potentially be pegged for as long as 15 minutes.<br><br>Symptom:<br>The Java Service Wrapper is reporting that the JVM appears to be hung and that the timeout expired while waiting on a signal from the JVM. The Java Service Wrapper then shuts down the JVM even though we believe the application is processing normally. Note: We have explicitly disabled the automatic restart functionality as we would like our existing monitoring software to detect and report the problem with the instance of the application. The following snippet is from the wrapper.log file:<br><br>ERROR | wrapper | 2008/07/21 16:15:53 | JVM appears hung: Timed out waiting for signal from JVM.<br>STATUS | wrapper | 2008/07/21 16:15:54 | JVM Restarts disabled. Shutting down.<br>STATUS | wrapper | 2008/07/21 16:15:54 | <-- Wrapper Stopped<br><br>The wrapper configuration is as follows:<br><br># -----------------------------------------------------------------<br># This file contains the configuration for the Java Service Wrapper<br># -----------------------------------------------------------------<br><br># Set the name of the service.<br>wrapper.name=VPC Gen2 Capture Service 1<br><br># Set the location of the wrapper log<br>wrapper.logfile=../logs/wrapper.1.log<br><br># Set the java command line options.<br>wrapper.java.additional.1=-DFILE_PREFIX=//localhost/data<br>wrapper.java.additional.2=-Dlog4j.configuration=log4j.1.xml<br>wrapper.java.additional.3=-DCAPTURE_SERVICES_LOG_DIR=D:\vpc\capture-services\<br>wrapper.java.additional.4=-Dcom.sun.management.jmxremote.authenticate=false<br>wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=1151<br>wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false<br>wrapper.java.additional.7=-Xmx1150m<br>wrapper.java.additional.8=-Xms512m<br>wrapper.java.additional.9=-XX:MaxPermSize=192m<br>wrapper.java.additional.10=-server<br><br># Set the application classpath.<br># The application classpath must contain wrapper.jar!<br>wrapper.java.classpath.1=../lib/wrapper.jar<br>wrapper.java.classpath.2=../../lib/vpc-framework-1.1.3.jar<br>wrapper.java.classpath.3=../../lib/capture-services-1.1.3.jar<br><br># -----------------------------------------------------------------<br># The following properties should not need to be modified.<br># -----------------------------------------------------------------<br><br># Set the application classname and optionally any <br># command-line parameters that must be passed.<br>wrapper.app.parameter.1=com.jpmc.vpc.core.StartApplication<br><br># Set the Java Library Path.<br>wrapper.java.library.path.1=../lib<br><br># Set the Java command.<br>wrapper.java.command=%JAVA_HOME%/bin/java<br><br># Set the Java Service Wrapper main class.<br>wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp<br><br># The following property instructs the Java Service Wrapper<br># to append the system PATH to the java.library.path at <br># runtime. This is used in order to load secondary DLLs.<br>wrapper.java.library.path.append_system_path=true<br><br># Set the debug flag.<br>wrapper.debug=false<br><br># Allow 5 minutes between pings<br>wrapper.ping.interval=300<br><br># Do NOT try to restart the JVM<br>wrapper.disable_restarts=TRUE<br><br># Number of seconds to wait for the ping to timeout<br>wrapper.ping.timeout=900<br><br>Our current thought is that we could set the value of the wrapper.ping.timeout property to be zero. This should prevent the Java Service Wrapper from attempting to ping the WrapperSimpleApp and ultimately prevent the false detection of a hung JVM which was causing the JVM to be shut down in the middle of normal processing. Does that sound about accurate?<br><br>Has anyone else out there experienced this or a similar problem? If so, what was your solution? Is there an alternate property that I should be focused on instead of the wrapper.ping.timeout property? I am aware of the wrapper.cpu.timeout property, but I have not seen any messages in the log to indicate that the wrapper has not received any CPU time for N seconds.<br><br>I would appreciate any input that you may have to offer.<br><div><br>Patrick M. Farrell, PMP, CSM<br>Consultant Mentor<br>Quick Solutions, Inc.<br>A four time INC 500 winner!<br><a href="mailto:pfa...@qu...">pfa...@qu...</a><br></div></div></FONT> |
|
From: Leif M. <le...@ta...> - 2008-07-22 15:42:13
|
Rob, As you are running from the console, you should be able to reproduce this by running the same command that the Wrapper generates from the command line. Open a command prompt and cd into the directory where the wrapper.exe is located. Now run the following command. It is the generated Java command minus the wrapper.key property: "C:\opt\java\jdk1.5.0_16\bin\java" -Dmule.home="." -Dmule.base="." -Dm2.repo="%M2_REPO%" -Dappendium.env=Gonzales -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=16001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Xms128m -Xmx256m -Djava.library.path="%LD_LIBRARY_PATH%;./lib/boot" -classpath ".\bin/../conf;.\conf;./lib/boot/commons-cli-1.0.jar;./lib/boot/mule-module-boot-1.4.4.jar;./lib/boot/wrapper-3.2.3.jar" -Dwrapper.port=32001 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=3184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.mule.modules.boot.MuleBootstrap -config .\conf\objectlab-esb-client-to-server-config_client1.xml My guess is that you will get the same error from the command line. Next try the java command itself: "C:\opt\java\jdk1.5.0_16\bin\java" -version What happens there? Cheers, Leif On Tue, Jul 22, 2008 at 7:04 PM, Rob Davison <rd...@ap...> wrote: > Hi All, > > I have seen some users have the following issue with the JVM not > starting. (Here, we are using Vista 64, with Mule 1.4.4). > The suggested workaround include checking the path to the JVM is > correct, and ensuring the the correct permissions are set on the folders. > > Here I have two processes using the wrapper - a client-from server, and > a client-to server. > > The client-from-server launches fine: > > wrapper config file: > C:\opt\appendium\mule\client-from-server\conf\wrapper-from- > server_client1.conf > Working directory set to: C:\opt\appendium\mule\client-from-server > --> Wrapper Started as Console > Using tick timer. > server listening on port 32001. > Launching a JVM... > command: "C:\opt\java\jdk1.5.0_16\bin\java" -Dmule.home="." > -Dmule.base="." -Dm2 > .repo="%M2_REPO%" -Dappendium.env=Gonzales > -Dcom.sun.management.jmxremote=true - > Dcom.sun.management.jmxremote.port=15001 > -Dcom.sun.management.jmxremote.ssl=fals > e -Dcom.sun.management.jmxremote.authenticate=false -Xms128m -Xmx600m > -Djava.lib > rary.path="%LD_LIBRARY_PATH%;./lib/boot" -classpath > ".\bin/../conf;.\conf;./lib/ > boot/commons-cli-1.0.jar;./lib/boot/mule-module-boot-1.4.4.jar;./lib/boot/wrappe > r-3.2.3.jar" -Dwrapper.key="hcHoizgB_iqKRoc5" -Dwrapper.port=32001 > -Dwrapper.jvm > .port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" > -Dwrapper.pi > d=4744 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" > -Dwrapper.cp > u.timeout="10" -Dwrapper.jvmid=1 org.mule.modules.boot.MuleBootstrap > -config .\c > onf\objectlab-esb-client-from-server-config_client1.xml > JVM started (PID=436) > > However, the client-to-server does not: > > wrapper config file: > C:\opt\appendium\mule\client-to-server\conf\wrapper-to-serv > er_client1.conf > Working directory set to: C:\opt\appendium\mule\client-to-server > --> Wrapper Started as Console > Using tick timer. > server listening on port 32001. > Launching a JVM... > command: "C:\opt\java\jdk1.5.0_16\bin\java" -Dmule.home="." > -Dmule.base="." -Dm2 > .repo="%M2_REPO%" -Dappendium.env=Gonzales > -Dcom.sun.management.jmxremote=true - > Dcom.sun.management.jmxremote.port=16001 > -Dcom.sun.management.jmxremote.ssl=fals > e -Dcom.sun.management.jmxremote.authenticate=false -Xms128m -Xmx256m > -Djava.lib > rary.path="%LD_LIBRARY_PATH%;./lib/boot" -classpath > ".\bin/../conf;.\conf;./lib/ > boot/commons-cli-1.0.jar;./lib/boot/mule-module-boot-1.4.4.jar;./lib/boot/wrappe > r-3.2.3.jar" -Dwrapper.key="9rKoYDt55Uk8QLuR" -Dwrapper.port=32001 > -Dwrapper.jvm > .port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" > -Dwrapper.pi > d=3184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" > -Dwrapper.cp > u.timeout="10" -Dwrapper.jvmid=1 org.mule.modules.boot.MuleBootstrap > -config .\c > onf\objectlab-esb-client-to-server-config_client1.xml > Unable to execute Java command. Access is denied. (0x5) > "C:\opt\java\jdk1.5.0_16\bin\java" -Dmule.home="." -Dmule.base="." > -Dm2.repo > ="%M2_REPO%" -Dappendium.env=Gonzales > -Dcom.sun.management.jmxremote=true -Dcom. > sun.management.jmxremote.port=16001 > -Dcom.sun.management.jmxremote.ssl=false -Dc > om.sun.management.jmxremote.authenticate=false -Xms128m -Xmx256m > -Djava.library. > path="%LD_LIBRARY_PATH%;./lib/boot" -classpath > ".\bin/../conf;.\conf;./lib/boot/ > commons-cli-1.0.jar;./lib/boot/mule-module-boot-1.4.4.jar;./lib/boot/wrapper-3.2 > .3.jar" -Dwrapper.key="9rKoYDt55Uk8QLuR" -Dwrapper.port=32001 > -Dwrapper.jvm.port > .min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" > -Dwrapper.pid=318 > 4 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" > -Dwrapper.cpu.tim > eout="10" -Dwrapper.jvmid=1 org.mule.modules.boot.MuleBootstrap -config > .\conf\o > bjectlab-esb-client-to-server-config_client1.xml > > ------------------------------------------------------------------------ > Advice: > Access denied errors when attempting to launch the Java process are > usually caused by strict access permissions assigned to the directory > in which Java is installed. > ------------------------------------------------------------------------ > > Critical error: wait for JVM process failed > Press any key to continue . . . > > As far as I can tell, the parameters are identical (with the exception > of 'from/to paths') and the permissions are the same on all the folders. > Has anybody else come across this issue? > Many thanks > Rob. > > -- > ------------------------------ > > IMPORTANT NOTICE > > This communication contains information that is considered confidential and may also be privileged . It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and delete the original. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |