[oXygen-user] prevent multiple instances on OS X
Tue Nov 23 08:31:22 CST 2010
We've tested and it should have worked fine with the default startup script.
The default behavior of Oxygen is single instance even for Mac. All
additional instances communicate the files to be opened to the first
instance and then exit.
Possible causes for the multiple instance behavior:
- Oxygen can't create(first instance) or find(additional instances) the
"oxygen.lock" file in
[user-home-folder]/Library/Preferences/com.oxygenxml so additional
instances conclude that they are the first. In the "oxygen.lock" the
first instance of Oxygen writes the port number where it can be
contacted by the additional instances. Default port is 30008.
- Oxygen can't open the TCP port either to listen(first instance) or to
communicate with the first instance .
Check your firewall or other security software that could cause any of
oXygen XML Editor and Author support
George Cristian Bina wrote:
> Hi Bob,
> When oXygen starts for the first time it creates a lock file and writes
> there a port number that he uses to listen on. When following instances
> are started they look for the lock file, get the port number from there
> and connect to that passing the command line arguments to the running
> instance. If a following instance cannot connect to the initial instance
> it will start itself.
> The default mode is single instance (desktop mode) and you should need
> the -Dcom.oxygenxml.MultipleInstances setting only to specify a true
> value to enable multiple instances (server mode - when there are more
> users in the same time using oXygen on the same machine).
> We will look more into this Monday and let you know if we find anything.
> Best Regards,
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> On 11/17/10 7:49 PM, Bob Beims wrote:
> > /Applications/oXygen/oxygenMac.sh
> > I've added the line
> > -Dcom.oxygenxml.MultipleInstances=false \
> > to oxygenMac.sh, and have also added "-Dcom.oxygenxml.MultipleInstances=false"
> > to VMOptions in /Applications/oXygen/Oxygen.app/Contents/Info.plist
> > But even with these properties specified, I'm getting multiple instances of
> > oXygen each time I open a file via the web UI.
> > Details:
> > - oXygen 11.2
> > - OS X 10.6.5
> > - JRE 1.6.0_22
> > Any ideas on how to fix this?
> > TIA,
> > Bob
> > _______________________________________________
> > oXygen-user mailing list
> > http://www.oxygenxml.com/mailman/listinfo/oxygen-user
> oXygen-user mailing list
More information about the oXygen-user