I want to launch multiple instances of JVM

hi guys,
When I go to a games room, the applet starts up and then a JVM is launched and it is visible in taskbar. If I click on another game room, the virtual machine launches another applet and the first one is destroyed, but thats no good to me, cos I want to have both applets running at the same time. I can achieve this by running one room from IE and another from Firefox, but is there a way to launch all from IE only, cos if I run both Firefox and IE it starts screwing up with my machine. So basically, I want to be able to run many instances of JVM.
Thanks.

That's odd, because one instance of the JVM should be
able to handle multiple instances even of the same
applet. Are you opening them in separate windows?no, in the same browser window...what happens is that when you click on a room, the previous window in whivh the applet was running is destrpyed and a new one is created

Similar Messages

  • ADF: want to add multiple instance of .jsff page in af:region dynamically

    Hi,
    I am having following requirement.
    We have one .jsff page, and we want to add multiple instance of this fragment page in <af:region> at runtime.
    Basically our requirement is anyhow we want to add multiple panel which is having many other child component at run time.
    Your suggestion will be very helpful.
    Regards,
    Deepak Parmar

    Vinod,
    Hmm.. only option left is i should add component at run time. but i am facing following issue...
    I am trying to add child component into RichPanelStretchLayout object at runtime, but getFacetCount() and getFacet() method of RichPanelStretchLayout is returning 0 and null respectively.
    can you please suggest me how can i add child component into RichPanelStretchLayout object?, i have directly added component using getChildered.add() method. but it wont work as i must need one facet object ( either START,BOTTOM or CENTER).
    Regards,
    Deepak

  • I want to run multiple instance of tomcat on same server-very Urgent

    HI all,
    I want to run multiple instance of tomcat on same server. I have created CATALINA_BASE directory and i put conf,logs,temp,webapps, and work directory. I have configured server.xml in different port. I have set the environment variables too. Though it didn't workout for me. Is there anything else i have to do for that. if so, Please assist me.
    I did all according to the tomcat 4.1running.txt
    Thanks in advance
    Ram.

    hi,
    http://www.linuxjournal.com/article/8561
    http://forum.java.sun.com/thread.jspa?threadID=515368&messageID=2458945Hit Google..
    http://www.google.com/search?q=how+to++run+multiple+instance+of+tomcat+on+same+server&client=netscape-pp&rls=com.netscape:en-US

  • How to launch multiple instances of browser

    I use multiple browser instances at once; but, I don't see how to do in on the MacPro.

    Hello,
    If you want multiple browser windows open at the same time (such as in Safari), then you go to the browsers file menu and choose "New Window"
    If you have tabbed browsing enabled, then you can choose "New Tab" from the same menu, and then just create a second, third, etc. Tab to view web pages in.
    You can enabled Tabbed Browsing in Safari by going to the Safari Menu, then Preferences, then the "Tabs" tab. Then, enable Tabbed browsing (set the other tab preferences as you like).
    I hope this helps.
    Let us know if you have other questions.
    P.S., if you'd like, go ahead and click the "Helpful" or "Solved" buttons on any of the posts / replies above if you feel they were helpful or adequately answered your question.

  • Multiple instances of jvm

    Hi
    How would I go about ensuring that an application could only instantiate itself once? If it�s put into an executable Jar for example it presently instantiates itself as many times as you click on it. I don't want to prevent other java apps from working, but just stop duplicates of themselves. The only solution I�ve found is to keep a record of the applications started on a txt file and to get any new app to read this at the start-up and exit if one is already running. This is not elegant and there must a better solution.
    Thanks in advance

    There probably aren't any really elegant solutions but the following provides a java only solution.
    First instance:
    It starts and trys to use a socket to connect to a specific port (put this in a config file if you like) to localhost (same box.) It will fail, so it then creates a socker server to the same port.
    Second instance:
    It starts and trys to use a socket to connect to a specific port. It will succeed, so exit the application.
    You can embellish this in various ways if you are concerned that something else might be using the socket.

  • [Solved] Launching multiple instances of a service from systemd timer

    I have a short script that I want to run every 5 seconds.  I've set up a systemd timer, which runs the script every 5 seconds, assuming the script terminates before the next elapse of the timer.  However, if the script is still running when the timer elapses, systemd sees that the service is already active, so it does not run my script again. 
    How can I make my script run in another instance, every 5 seconds, even in cases where the script is still running from an earlier elapse of the timer? 
    I'd like to keep everything managed by systemd, in that it should capture stdout into the journal.  I've looked at using a systemd socket unit with ListenStream pointing to a file system socket, where the socket-activated service template runs my script.  Then, a timer unit runs a script that calls socat to send a single character to the file system socket to spin up an instance.  The nice thing about this approach is that systemd can manage limiting the number of socket activations that can be spun up.  However, I haven't gotten this idea to work yet. 
    Here's my test script, which I can cause to run for a long time by creating a lockfile. 
    [root@dogbert system]# cat /var/lib/misc/test1.py
    #!/usr/bin/python2
    import os
    import time
    import sys
    print "%d starting..." % os.getpid()
    sys.stdout.flush()
    while os.path.exists("/tmp/test1.lockfile"):
    print "%d sleeping..." % os.getpid()
    sys.stdout.flush()
    time.sleep(1.0)
    print "%d exiting..." % os.getpid()
    Here are my unit files:
    [root@dogbert system]# cat /etc/systemd/system/test1.timer
    [Timer]
    OnBootSec=1min
    OnCalendar=*:*:0/5
    AccuracySec=50ms
    [Install]
    WantedBy=timers.target
    [root@dogbert system]# cat /etc/systemd/system/test1.service
    [Service]
    Type=oneshot
    ExecStart=/var/lib/misc/test1.py
    Here's what happens if I create the lock file and then remove it.  The script does not run at 10:39:30, but I get one "catch-up" run of the script at 10:39:32. 
    May 02 10:39:20 dogbert test1.py[10209]: 10209 starting...
    May 02 10:39:20 dogbert test1.py[10209]: 10209 exiting...
    May 02 10:39:25 dogbert test1.py[10228]: 10228 starting...
    May 02 10:39:25 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:26 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:27 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:28 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:29 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:30 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:31 dogbert test1.py[10228]: 10228 sleeping...
    May 02 10:39:32 dogbert test1.py[10228]: 10228 exiting...
    May 02 10:39:32 dogbert test1.py[10250]: 10250 starting...
    May 02 10:39:32 dogbert test1.py[10250]: 10250 exiting...
    May 02 10:39:35 dogbert test1.py[10269]: 10269 starting...
    May 02 10:39:35 dogbert test1.py[10269]: 10269 exiting...
    May 02 10:39:40 dogbert test1.py[10287]: 10287 starting...
    May 02 10:39:40 dogbert test1.py[10287]: 10287 exiting...
    Last edited by johnp636 (2015-05-05 01:22:35)

    johnp636 wrote:However, if the script is still running when the timer elapses, systemd sees that the service is already active, so it does not run my script again.
    That's normal, you cannot start again an already active service unit, which is what the timer tries to do if the next trigger comes before the service ends.
    How can I make my script run in another instance, every 5 seconds, even in cases where the script is still running from an earlier elapse of the timer?
    I don't think that a timer can do this with a simple service.
    But a shell script can manage this.
    I'd like to keep everything managed by systemd, in that it should capture stdout into the journal.
    The command 'systemd-cat' can be used in the shell script to get this feature.
    I propose this bash script:
    #!/bin/bash
    nbprocess=0
    while true; do
    if ((nbprocess <= 2)); then
    systemd-cat /var/lib/misc/test1.py &
    fi
    nbprocess=$(pgrep test1.py|wc -l)
    sleep 5
    done
    It limits the number of test1.py processes to 3.
    This script can be started with a service unit, without using a timer:
    [Service]
    ExecStart=/var/lib/misc/test1.sh
    Stopping this service, will end all the running test1.py processes.
    Maybe there is a better way to do this, but this method is simple; if I find something else, I will post again.

  • I want to launch multiple scripts written in Java from command line

    Hi,
    I have created a Master script file (script.java) which call functions available in other class files. (created through Java code).
    Now, let's say I have 10 functions(scripts) on master script file but I want random selection for executing these functions. Do we have any interface for selection from available scripts?
    Edited by: 917140 on Apr 10, 2012 8:11 AM

    "Everything I know about the command is in the man page. I can't give you a literal command, because I don't know what to put in for the arguments. To be honest, if the man page is not understandable enough for you to build the command, I don't think you should use it at all. Use Profile Manager in OS X Server, which is the right way to do what you're trying to do."
    I do not know why this post did not show up here on the thread, I did get the email. Not sure how to respond. We have 800 stations. Can not go and touch each one, so looking for a command line to remove the ssid "campus" - If I read your message correct, you do not know the command line either for this. Thank you.

  • Why is adobe acrobat launching multiple instances on my computer with each using ~ 30% of cpu

    Right now I have to cancell multiple processes every 30 minutes.  My computer is running @ 100% constantly with the fan blowing.  The system is a  Core i7 laptop running windows 8.
    i just killed 2 processes and another one popped right back up -- consuming 32% of my processor.

    You'd better follow this thread: http://forums.adobe.com/message/5329751#5329751
    You're not alone in this case ;-)

  • Multiple instances of Mail.app must be possible

    I've seen many questions regarding the possibility of running multiple instances of Mail.app as separate processes. There seems to be much good reason to be able to do so, i.e. separating work and private mail, and very little bad reason to do so (maybe some problems when doing upgrades or backups, but I'm not yet sure of this). It also seems that it should not be so hard to do.
    So far, using some web acquired wisdom, I've done the following:
    1. Duplicate mail.app:
    sudo ditto Mail.app WorkMail.app
    2. Rename the executable:
    mv /Applications/WorkMail.app/Contents/MacOS/Mail /Applications/WorkMail.app/Contents/MacOS/WorkMail
    3. Use Property List Editor to set the following values in/Applications/WorkMail.app/Contents/Info.plist (Apple-S to Save changes!):
    Root/CFBundleExecutable=WorkMail
    Root/CFBundleIdentifier=com.apple.workmail
    Root/CFBundleName=WorkMail
    Root/NSServices/0/NSPortName=WorkMail
    Root/NSServices/1/NSPortName=WorkMail
    Root/NSServices/2/NSPortName=WorkMail
    Root/UTExportedTypeDeclarations/0/UTTypeIdentifier=com.apple.workmail.emlx
    Root/UTExportedTypeDeclarations/1/UTTypeIdentifier=com.apple.workmail.emlx.part
    4. Create the following directories:
    mkdir ~/Library/WorkMail Downloads
    mkdir ~/Library/WorkMail
    4. Launch the 'new' application 'WorkMail'.
    5. Create mail accounts using the application's 'wizard'.
    Here is where the first problem is encountered. The new account directories and files are still created at ~/Library/Mail. Navigating to Mail->Preferences->Accounts->[account_name]->Advanced seems to offer the option to change the mail store account directory, but nothing can actually be changed here. So...
    6. Quit WorkMail.
    7. Move newly created account(s) directories (where [newaccountdirectory] is a directory named with the format: [mail_type]-[user]@[domain].[tld]@[pop].[domain].[tld]]) to the correct location:
    sudo mv ~/Library/Mail/[newaccountdirectory] ~/Library/WorkMail/
    8. Use Property List Editor to set the following values in ~/Library/Preferences/com.apple.workmail.plist (Apple-S to Save changes!):
    /Root/ActiveViewers/0/AttachedMailboxListExpandedItems/[0to_#_ofaccounts]/=~/Library/WorkMail/Mailboxes/...
    /Root/CurrentTransferMailboxPath=~/Library/WorkMail/Mailboxes/...
    /Root/MailAccounts/[0to_#_of_accounts]/AccountPath=~/Library/WorkMail/[new_accountdirectory]
    /Root/MailDownloadsPath=~/Library/WorkMail Downloads
    9. Relaunch WorkMail.
    Everything at this point seems to work okay, **BUT** when I launch Mail while WorkMail is launched, I find that I cannot navigate into any mail folders within Mail. I receive an error message indicating that a necessary directory is locked. It seems that the locking mechanism used by the application may be hard-coded to lock ~/Library/Mail, and both instances of the application continue to take this action when launched, making it impossible for both to work harmoniously at the same time. I will conduct more testing and experimentation, but I am not yet capable of editing the application itself. If anyone can take us this last step, I'm sure there are many who would also like to be able to take advantage of the potential functionality.
    Thanks for any input!
    Steven Stromer

    Hopefully, there is someone with a programming background who
    can take me and other who have posted similar questions through
    the final mile on this...
    Well, I do have a programming background, and I must say that it amazes me that someone might want to do what you did to “solve” a problem that IMO doesn’t exist.
    What exactly is it that you expect to accomplish by running multiple instances of Mail, and for which neither (1) organizing your mail using multiple mail accounts, custom mailboxes, rules, and/or smart mailboxes, nor (2) setting up separate user accounts, are acceptable solutions? I just don’t get it.
    I've seen many questions regarding the possibility of running multiple
    instances of Mail.app as separate processes.
    I haven’t. Could you please provide a link for such a question, preferably one asked by someone who knew how Mail and Mac OS X work, i.e. a link for a case where there really was such a need?
    There seems to be much good reason to be able to do so
    I know of no such reasons, neither good nor bad.
    i.e. separating work and private mail
    I don’t see how that’s a reason to want to run multiple instances of Mail. Could you please elaborate?
    Maybe if you tell us what exactly is the problem that you’re trying to solve, instead of focusing on a convoluted “solution” that doesn’t work, we could propose a solution that does...
    and very little bad reason to do so
    Well, if the fact that it’s so convoluted and doesn’t even work aren’t bad enough reasons, I don’t know what it is...
    It also seems that it should not be so hard to do.
    I wonder what makes you think so. It does certainly seem hard to me, so hard that I don’t even think it can be done without breaking something, if at all...

  • How can I open multiple instances of the same version of FF?

    I understand that if I have multiple profiles, I can run different versions of FF side-by-side (like 3.6 and 4).
    However, what I'm interested in is how I can launch multiple instances of the same version of FF (4, for instance) using the same profile. In other words, I want to be able to double-click the desktop icon for FF, and open a new instance, and keep doing that as many times as I want. I don't want to have a different icon and profile for each instance (too much overhead to keep a dozen+ profiles in sync).
    I can always launch one FF window instance, and then keep clicking ctrl+N to launch new instances from inside it, which they all share the same profile (as I want). So, basically, I want to be able to do that from my desktop icon, rather than by having to do it with the keyboard ctrl+N sequence.

    But I don't understand why whatever Firefox does when you click ctrl+N can't also be done (with some sort of command-line switch) from a desktop icon?
    In other words, I clearly can create many FF instances (even if they are the same FF.exe process) by doing ctrl+n a bunch of times. Why then can't this behavior be done from a desktop icon with some parameters?
    As far as I know, FF is the only browser that doesn't directly allow multiple browser instances from desktop icons. IE, Chrome, Safari, Opera, etc... all let me launch a new instance (even if they are all single process and the instances are shared within the process).

  • Clustering w/ Multiple Instances per server

    For performance reasons, we want to setup multiple instances of weblogic on each server in our cluster configuration.How is this handled in a cluster configuration? Is each instance considered another server in the cluster? Does each require its on IP address, or is a seperate port sufficient for each? Also, is there a way to configure the cluster w/o using multicast - there's issues with supporing multicast on our backend network.Thanks, Rick
              

    Sure, if JVM uses native threads and the application itself is well-behaved
              concurrency-wise (very important!) it should be able to scale up on multiple CPUs.
              Madhu <[email protected]> wrote:
              > What about CPU utilization? What if you have mutliple cpus? Is the Java VM
              > optimized for mutliprocessor environment. I can VM per processor so that I
              > can keep them all busy? Is this possible? Can I have a VM locked on to one
              > processor?
              > Also, I found issues running code (could be buggy testing) running on WL 5.1
              > on multi-cpu machine, on single cpu it was all code and in mutli-cpu, mostly
              > index out of bound / some from java.util classes like ArrayList? Is this
              > common?
              > - Madhu
              > "Dimitri Rakitine" <[email protected]> wrote in message
              > news:[email protected]...
              >> Sure you can - each instance will need it's own IP address, but why do you
              > think that running WLS
              >> instance per CPU will improve performance? The reason for running multiple
              > JVMs on the same box was
              >> memory utilization, which is not an issue with Hotspot JVM.
              >>
              >> Richard Kemp <[email protected]> wrote: > For performance reasons, we
              > want to setup multiple instances of weblogic on
              >> each server in our cluster configuration.How is this handled in a cluster
              > configuration? Is each instance considered another
              >> server in the cluster? Does each require its on IP address, or is a
              > seperate port sufficient for each? Also, is there a way
              >> to configure the cluster w/o using multicast - there's issues with
              > supporing multicast on our backend network.Thanks, Rick
              >>
              >> --
              >> Dimitri
              Dimitri
              

  • Opening multiple instances of the same vi

    Hi,
    I am having trouble opening multiple instances of the same vi.
    This vi that I am trying to create can be used like a message display window to display numbers, strings etc (just like labVIEW's display message control except that this vi will update the displayed controls every scan). So for example, I will like to have a subvi, lets call it popup.vi, where I wire in three inputs from my main vi (2 strings and 1 number). Now in my main.vi I have 2 numeric controls Num1 and Num2 with their KeyFocus property nodes.
    The intention is that when I select Num1 or Num2 numeric control with my mouse the KeyFocus boolean becomes true and the popup.vi logic kicks in. Meaning that the popup.vi runs and opens its front pane
    l displaying the two strings and one numeric value from the main.vi.
    The problem arises when I want to open and run multiple instances of the popup.vi.
    So when I click on Num1 with my mouse I want the popup.vi to open its front panel with a set of strings and number displayed. At the same time I would want to click on Num2 control and open another instance of the popup.vi with another set of strings and numeric value.
    Also, I saved the popup.vi as popup.vit but for some reason vi server will not open the popup.vit. I get a message that popup.vit is already in memory - cannot load.
    I have attached a sample of the main.vi and popup.vi program.
    Please let me know if you need further clarifications.
    I appreciate your help in this matter.
    Thanks
    Nish
    Attachments:
    popupVI.zip ‏37 KB

    You have to clone the VI. You say you have tried to use the .vit way of cloning...but in the example there is no use of VIT and the VI is called statically. If you want to open multiple instances of the same VI and the VI has a user interface (or needs to be a unique instance of the VI every time even though it's called the same place in the diagram, not the case here though) you need to do it dynamically, i.e. with an invoke node.
    There is actually a problem doing just that, it causes a memory leak...but that won't be a problem unless the VI is called frequently / the software will be running over very long periods of time. You can see an example of it here (attached to my reply to the question):
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&
    RPAGEID=135&HOID=506500000008000000A07D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    About the memory leak problem:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B7A40000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    MTO

  • Multiple instances of the same VI running in parallel

    Hi,
    I have a timestamping subVI that looks at a counter channel and applies timestamps. I want to create multiple instances of this subVI (8 to be exact) and have them all run in parallel (looking at 8 different channels). Someone gave me the following advice:
    >>
    Also, in case you want to call multiple instances of the same SubVI, and you want these multiple instances to execute in parallel, you will have to set the SubVI to execute in reentrant mode. Do this by opening the SubVI and going to "Edit >> VI Properties >> Execution" and enable "Reentrant execution".
    <<
    I've tried this but only my second instance (I started simple with only 2 instances) seems to monitor its channel and pass data along to the queue. I've included my code below, I have two signal simulators which simulate singles coming in on channels 2 and 3. I'm using a PCQI 6602 counter/timer card.
    Any help would be greatly appreciated, thanks in advance,
    Chris
    Attachments:
    LabView App (June 28, 2005).zip ‏158 KB

    good news! Your reentrant VI is working and all three instances are running (as execution highlighting clearly shows). The problem is going to be an error that is occuring but you don't see because you are ignoring the error clusters internally in the timer. It looks like at one point it was set to quit if an error occurred. That still needs to be there.
    Always hookup error clusters...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Running multiple instances of Premiere

    This may be a dumb question, and I admit I'm new and naive to Premiere, but I've Googled and I've searched the forums here, and I must say the only thing I've found regarding this is 5 years old. I'm a little pressed for time, so I figured this would be the quickest way to get an answer. I want to run multiple instances of Adobe Premiere Pro 4.2 on a Vista 32bit system. Is is possible, and how would I go about doing so? Thanks in advance.

    That wouldn't be so bad, except there are multiple takes per angle, and I renamed the clips in Premiere, so instead of 00023, it says Person Running. So instead of just looking at the time codes in the EDL, showing "00023 starts etc etc" it shows "Person Running etc etc" and I would have to guess as to which exact take it would be that was used.
    *edit* I just looked, and I could concievably click on the properties for each clip, and it shows the original file name, so it would be possible to rename them all to the original file name. It just looks like it's gonna take some extra work, on top of my already large load.

  • How to launch many instances of Sun Java ME Platform SDK 3.0 emulator ?

    Hi all,
    I want to launch two instances of the emulator , how to achieve that ?
    Thank you very much indeed

    Hello,
    Unfortunately it is not possible. We will think about it for next release. Java ME SDK is not supposed to offer full IDE functionality (e.g. changing editor colors), that's why some features are missing. For full IDE support use NetBeans IDE with Mobility support.

Maybe you are looking for