|
From: Jacques B. <jac...@gm...> - 2003-11-24 14:13:01
|
Let's try this message again. Sorry: I actually managed to get myself =
unsubscribed from this list right after I sent this message off. Ha ha.
-------------------------------------------------------------------------=
-------
Hi there guys. Couldn't find any info on the type of problem I'm having.
I am wrapping two completely separate java apps on the same machine.
They start up and run fine, but when I terminate one of the java.exe =
(VM) processes using the task manager to test that the wrapper restarts =
the VM, the whole wrapper seems to die, not just the VM. Consequently =
the VM doesn't get started up again - obviously.
When I test the two separately, both work fine and get restarted without =
a problem. It's only when they are running simultaneously that things =
seem to go wrong.
Can anybody help me? Am I doing something wrong. Can the wrapper handle =
two VMs?
Thanx much!
Testing this on a WinXP Home system: SUN JRE 1.4.2_1. 512 MB RAM. 2GB =
Intel. Wrapper 3.0.5.
PS I think this wrapper project is seriously cool! Thanx for the =
work, to the dev team..
*=20
=20
Jacques Bosch
Software Developer =20
jac...@gm... tel:=20
mobile: +27 (0)12-3465444
+27 (0)82-4711807 =20
=20
=20
=20
=20
=20
=20
=20
=20
=20
|
|
From: Leif M. <le...@ta...> - 2003-11-24 14:50:04
|
Jacques, > Hi there guys. Couldn't find any info on the type of problem I'm having. > > I am wrapping two completely separate java apps on the same machine. > They start up and run fine, but when I terminate one of the java.exe > (VM) processes using the task manager to test that the wrapper > restarts the VM, the whole wrapper seems to die, not just the VM. > Consequently the VM doesn't get started up again - obviously. > When I test the two separately, both work fine and get restarted > without a problem. It's only when they are running simultaneously that > things seem to go wrong. > > Can anybody help me? Am I doing something wrong. Can the wrapper > handle two VMs? > Thanx much! This should be working, I run with multiple JVMs all the time. Just retested this and it is working fine for me. Could you enable debug output in the JVM that is exiting using the wrapper.debug=true property then reply with your wrapper.conf file and the contents of the wrapper.log file for a single JVM run? I may be able to spot the problem. > Testing this on a WinXP Home system: SUN JRE 1.4.2_1. 512 MB RAM. 2GB > Intel. Wrapper 3.0.5. > > PS I think this wrapper project is seriously cool! Thanx for the > work, to the dev team.. Thanks, glad you find it useful. Cheers, Leif |
|
From: Jacques B. <jac...@gm...> - 2003-11-25 07:45:46
Attachments:
wrapper.log
wrapper.conf
|
Hi there Leif. Attached are the files for a single normal startup and shutdown of what you asked for. Just to let you know, after generating the log for you, I tested the two apps running together again this morning, terminating the VM processes, and the wrapper handled both fine this time. What bothers me is that yesterday it didn't work, today it did, but I haven't changed anything. Not the apps, not the wrapper.conf, nothing. I haven't even restarted my machine. Another, much less important issue :) Is there a way to set the text line wrap width on the console output. I find that the output gets wrapped when there is still more than enough room left to finish some of the lines. Thanx for the help. Jacques ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Monday, November 24, 2003 4:49 PM Subject: Re: [Wrapper-user] 2 wrapper instances - problem : Jacques, : : > Hi there guys. Couldn't find any info on the type of problem I'm having. : > : > I am wrapping two completely separate java apps on the same machine. : > They start up and run fine, but when I terminate one of the java.exe : > (VM) processes using the task manager to test that the wrapper : > restarts the VM, the whole wrapper seems to die, not just the VM. : > Consequently the VM doesn't get started up again - obviously. : > When I test the two separately, both work fine and get restarted : > without a problem. It's only when they are running simultaneously that : > things seem to go wrong. : > : > Can anybody help me? Am I doing something wrong. Can the wrapper : > handle two VMs? : > Thanx much! : : This should be working, I run with multiple JVMs all the time. Just : retested this and it is : working fine for me. Could you enable debug output in the JVM that is : exiting using : the wrapper.debug=true property then reply with your wrapper.conf file : and the contents : of the wrapper.log file for a single JVM run? I may be able to spot the : problem. : : > Testing this on a WinXP Home system: SUN JRE 1.4.2_1. 512 MB RAM. 2GB : > Intel. Wrapper 3.0.5. : > : > PS I think this wrapper project is seriously cool! Thanx for the : > work, to the dev team.. : : Thanks, glad you find it useful. : : Cheers, : Leif : : : : : ------------------------------------------------------- : This SF.net email is sponsored by: SF.net Giveback Program. : Does SourceForge.net help you be more productive? Does it : help you create better code? SHARE THE LOVE, and help us help : YOU! Click Here: http://sourceforge.net/donate/ : _______________________________________________ : Wrapper-user mailing list : Wra...@li... : https://lists.sourceforge.net/lists/listinfo/wrapper-user : : : |
|
From: Leif M. <le...@ta...> - 2003-11-25 14:26:11
|
Jacques, >Attached are the files for a single normal startup and shutdown of what you >asked for. >Just to let you know, after generating the log for you, I tested the two >apps running together again this morning, terminating the VM processes, and >the wrapper handled both fine this time. What bothers me is that yesterday >it didn't work, today it did, but I haven't changed anything. Not the apps, >not the wrapper.conf, nothing. I haven't even restarted my machine. > > I looked over your wrapper.log and wrapper.conf files and they look fine. Does this wrapper.log capture the failure that you described? It looks like the applications starts up normally and then exits normally. The Wrapper begins the shutdown process when its shutdown hook is invoked. This was most likely caused by something in your code calling System.exit(n). I am not sure what would have been causing the problem you had seen before. If you are able to reproduce it and capture the problem in a log file, I would love to see it. >Another, much less important issue :) Is there a way to set the text line >wrap width on the console output. I find that the output gets wrapped when >there is still more than enough room left to finish some of the lines. > > At what point are you having problem with characters wrapping? Looking at the source it looks like the Wrapper will wrap long lines at 1024 characters? Is this the limit you are encountering? If this the problem, I can look at reworking that code to get rid of the wrapping. It is an artifact of the way output is read in from the JVM. Cheers, Leif |