Running multiple instances of a service
ello,
is it possible (and not "tabooed") to run multiple instances of an application that is designed to be service?
Im intending to use the Java Service Wrapper to have my app run as a service, but im wondering if it is possible to run multiple instances of my application wrapped in the wrapper.
What about starting the service using command line arguments?
This is some details of my scenario:
Im developing a server that will run without threading - it will read client requests that have been saved by the clients into a database. Thus im going to have an infinite while loop that just keeps reading the db for unprocessed client requests.
When it is noticed that the load has increased then more than one instance of the server will be necessary.
if im using the java service wrapper to run my server as a service will it be possible to achieve the above?
thanks.
one more thing : if i make any changes in the wrapper.conf xml file for the java service wrapper will the config be automatically loaded?
Similar Messages
-
Recently installed Diadem and there must be some sort of registry error. Whenever I startup I get the error "Attempted to start multiple instances of the service" anyone know the registry fix for this? Thanks!
Attachments:
NI startup error.jpg 16 KBHey Kyle,
Check your services and see what’s running. This can be done by going to Start>>Run and type “services.msc”. Then look for anything that starts with National Instruments or NI. Look to see if there are any entries running twice or if you are trying to call a service that is already running.
Nick
National Instruments
Applications Engineer -
How can i run multiple instances of Photoshop EXE at the same time on windows 7
Alright. You may ask why do you need multiple ?
Assume that i have 10000 PSD files in 10 different folders
I have a script that just save as them as PNG
And these files are each 3000x3000 px
My computer has 8 cores and 1 photoshop exe is only using 1 cpu core
Also i have SSD raid system it has 750 mb read write per second
So right now i am wasting my time with running only 1 photoshop exe instead of at least 4I'm not aware of a way to run multiple instances or different versions of photoshop at the same time on windows.
Assuming of course they are all installed on the same operating system.
On mac versions you can running two different versions of photoshop at the same time, but i don't think that's possible on windows where it
appears that only one version of photoshop can run at a time. -
Running multiple instances on same machine
I need to run multiple instances of BEA WLS on a unix machine. I need 4 separate instances (dev and test for two different departments) on one machine and two production instances on another machine. What is the best way to go about separating these (ex. an account or directory structure for each)?
Thanks,
Roger ---|-Dev/Test:
Give each one its own domain name - i.e. a separate directory under config. This
works well.
Production:
Do the same, but to keep licensing costs down, I'd be inclined to run everything
on a single instance.
simon.
Roger Cornejo wrote:
I need to run multiple instances of BEA WLS on a unix machine. I need4 separate instances (dev and test for two different departments) on
one machine and two production instances on another machine. What is
the best way to go about separating these (ex. an account or directory
structure for each)?
Thanks,
Roger ---|- -
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. -
Run Multiple Instances of Windows Store App
We have a desktop app which we are considering porting to Windows Store. Our app allows the user to generate orders. If the user wishes to generate several orders simultaneously, they open several instances of our app.
Is it possible to run multiple instances of a Windows Store app on Windows 10?Hi,
Another thread in MSDN forum already answered this question:
https://social.msdn.microsoft.com/forums/windowsapps/en-us/19b5bd94-d772-46b0-b5af-a1be475b0e16/multiple-instance-in-metro-app
The app is still single instance, but it can now open multiple windows by calling
CoreApplication.CreateNewView. This is demonstrated in the
Multiple Views Sample
Roger Lu
TechNet Community Support -
Running multiple instances of program in parllel processing.
Hi Experts...
We have an issue where we need to update huge set of data (say more than 2000000), update is simple where some BI table needs to be updated for few fields.
Now issue is that if at one go this update is done then there is memory issue, system is not able to extend the internal table beyond a permitted memory.
For this there may be some chanes which could be done in report RSMEMORY but business does not want this way.
I want to know what does "running multiple instances of a program in parllel processing, one job does not have to update the whole table".
Program is ready but simply running program without any input on the selection screen is picking all data and ending up in a short dump since there is huge data in the BI table.
What is the best possible way to update table through program where there is an issue of Huge data.
Do we have any expert comments on this ?
Thanks & Regards,
MarkHope this gives some direction !
Bundling using Function Modules for Updates
If you call a function module using the statement CALL FUNCTION ... IN UPDATE TASK, the function module is flagged for execution using a special update work process. This means that you can write the Open SQL statements for the database changes in the function module instead of in your program, and call the function module at the point in the program where you would otherwise have included the statements. When you call a function module using the IN UPDATE TASKaddition, it and its interface parameters are stored as a log entry in a special database table called VBLOG.
http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm
Rgds
Sameer -
Running multiple instances from same oracle home
Hi Gurus,
I am preparing for OCA 11g examination. I had a question about running multiple instances from same oracle home. While reading the book I came across a statement about database control which says "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".
Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).
I am not able to understand how exactly can you have multiple database instances in a single oracle home. I have installed Oracle 11g on my computer whose oracle home is +"D:\oracle\product\10.2.0\db_1"+; now this directory houses all the binaries (executables and folders like admin,bin, etc) for the oracle instance that I have installed (the instance name is ocp1). Now if I am to install or create another Oracle Instance (say ocp2) in the same home, wont there be a conflict of binaries of the two instances in the same home ?
Basically,it makes sense if db_1 folder is further split into multiple folders, one for each instance (for example, one for ocp1 & one for ocp2); each of these folders will then contain the binary files, libraries,etc for its own instance; but, this is not the case, here db_1 houses all the binaries directly under it ...
The other question which stems from the statement I mentioned above is that if having multiple instances running from same oracle home accessing the same physical database, can this arrangement be called RAC at all; or does RAC dictate that you cannot have multiple instances that are accessing the same database have to be installed on physically separate machines and so you cannot have two RAC instances (accessing same physical database) installed on the same computer ??
I hope my questions are not too much confusing ... !!
Cheers,
SudriptaHello,
"If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".This is true, and also means each instance will have its separate database (i.e. dbf files etc.) & separate DB Control. Usually in this case you create several instances on the same node.
Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).You are correct about RAC where several instances (usually running on separate nodes) access the RAC.
More info:
1 Oracle Home - 1 Database - 1 SID is possible.
1 Oracle Home - Many Databases - Many SID is possible.
1 Oracle HOme - 1 Database - Multiple SID is possible and this is called RAC. -
Disallow running multiple instances of the same web start application..
on the client? I have an application that is launched on the client by clicking on the link to the JNLP file. The problem is that I don't want the application to launch twice if the user clicks the link twice. Is there a way to keep web start from running multiple instances of the same app?
I don't want to just disable the button after it is clicked because then the user won't be able to get back in if they need to.
Any help out there?
Thanks,
MelanieThe way I do this is to try connect to an obscure port number on the localhost at startup.
if this connection succeeds I assume the app is already running. otherwise the program continues and registers as a server at that port number.
I actually take this a little bit further by registering a web server at this port (I use the Brazil server), That way if the program finds an instance of itself running it can send a message to the web server and ask the program to do something (like start another window if,for instance you wanted to allow this but only within the same VM). -
Running multiple instances of Flash IDE CS(6)
I have a build machine compiling my fla files by running Flash.exe from command line and supplying a JSFL file as a parameter. I want to run multiple instances of Flash IDE in order to enable concurrent builds on that machine otherwise there's only one thread running on a build machine which is a resource waste.
So, is it possible to run multiple instances of Flash IDE? Maybe there's a kind of command line switch? I have Flash CS6, but there shouldn't be that many differences with CC, isn't it?I dont think you can run multiple instances of flash both in CS6 and CC.
-Sujai -
Running multiple instances of program at same time problems
I have a c++ program that uses BerkeleyDB 4.8.26 with transactions. Program works well, and I can run multiple instances of program and they cooperate on database very well. Problem arises when I run a small test program that runs 10 instances of the same program at same time.
Test program opens database with transactions, it does some database reads and writes and quits. This test is run in 10 instances of the same program at the same time. Some instances run and finish well, other instances end up with some of these errors:
unable to allocate memory for the lock table
PANIC: Cannot allocate memory
Error opening environment: DB_RUNRECOVERY: Fatal error, run database recovery
another with:
db_files/__db.001: No such file or directory
db_files: No such file or directory
Error opening environment: Invalid argument
others with this one:
Log file corrupt at LSN: [1][84474]
fileops: close db_files/log.0000000001
PANIC: Invalid argument
unable to join the environment
db_files: No such file or directory
Error opening environment: DB_RUNRECOVERY: Fatal error, run database recovery
I don't understand reason of this error, as I thought (and read) that BerkeleyDB should be able to handle multiple instances accessing database and is thread-safe.
I tried to run the test on both NFS and local disk drive with same results.
Is there anyone with ide what could be causing this problem ? My platform is x86_64 GNU/Linux 2.6.18-164.el5
Edited by: Miro Janosik on 21.9.2010 22:42If there is someone who would like to look at this problem I'd like to show you program log files with verbose output turned on. There are 11 log files in the archive: http://bin.mypage.sk/FILES/log.rar
Log files that end up with lines like this one below mean that program finished running ok:
4000|0 4 20100922 07:07:24.094 20100922 07:07:24.094 FLOW_CMD
Here below is output from one of log files:
FilePersistentStorage::open() start
FilePersistentStorage::open() ReadDir
FilePersistentStorage::open() db_env_create
FilePersistentStorage::open() db_env_create ok
FilePersistentStorage::open() set cachesize
FilePersistentStorage::open() set_tx_max
FilePersistentStorage::open() set_timeout
FilePersistentStorage::open() set_lk_detect
FilePersistentStorage::open() exists homedir?
envp->open
FilePersistentStorage::open() envp->open
fileops: stat /var/tmp
fileops: open db_files/__db.rep.init
fileops: close db_files/__db.rep.init
fileops: open db_files/__db.001
fileops: close db_files/__db.001
fileops: open db_files/__db.001
fileops: mmap db_files/__db.001
fileops: close db_files/__db.001
unable to join the environment
fileops: directory list db_files
fileops: unlink db_files/__db.005
fileops: unlink db_files/__db.004
fileops: unlink db_files/__db.003
fileops: unlink db_files/__db.002
fileops: unlink db_files/__db.001
fileops: open db_files/__db.001
fileops: open db_files/__db.001
fileops: read db_files/log.0000000001: 12 bytes at offset 371
Finding last valid log LSN: file: 1 offset 371
fileops: close db_files/log.0000000001
fileops: open db_files/__db.005
fileops: seek db_files/__db.005 to 794624
fileops: write db_files/__db.005: 8192 bytes
fileops: mmap db_files/__db.005
fileops: close db_files/__db.005
fileops: open db_files/__db.006
fileops: seek db_files/__db.006 to 376832
fileops: write db_files/__db.006: 8192 bytes
fileops: mmap db_files/__db.006
fileops: close db_files/__db.006
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 335
fileops: read db_files/log.0000000001: 371 bytes at offset 0
fileops: directory list db_files
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: close db_files/log.0000000001
Recovery starting from [1][243]
fileops: close db_files/log.0000000001
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: write db_files/log.0000000001: 92 bytes at offset 371
fileops: flush db_files/log.0000000001
fileops: close db_files/log.0000000001
fileops: open db_files/log.0000000002
fileops: close db_files/log.0000000002
fileops: open db_files/log.00002
fileops: close db_files/log.00002
fileops: open db_files/log.0000000001
fileops: seek db_files/log.0000000001 to 463
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 3633 bytes
fileops: close db_files/log.0000000001
Recovery complete at Wed Sep 22 07:07:23 2010
Maximum transaction ID 80000002 Recovery checkpoint [1][371]
FilePersistentStorage::open() ok
envp->lock_detect
FilePersistentStorage::open() lock_detect
rejected locks count: 0
db_create
dbp->open
fileops: stat db_files/test_aaps.db
fileops: stat db_files/test_aaps.db
fileops: stat db_files/__db.80000001.d9f23b56
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: write db_files/log.0000000001: 67 bytes at offset 463
fileops: flush db_files/log.0000000001
fileops: open db_files/__db.80000001.d9f23b56
fileops: stat db_files/__db.80000001.d9f23b56
fileops: seek db_files/__db.80000001.d9f23b56 to 0
fileops: write db_files/__db.80000001.d9f23b56: 4096 bytes
fileops: seek db_files/__db.80000001.d9f23b56 to 4096
fileops: write db_files/__db.80000001.d9f23b56: 4096 bytes
fileops: flush db_files/__db.80000001.d9f23b56
fileops: close db_files/__db.80000001.d9f23b56
fileops: stat db_files/test_aaps.db
fileops: stat db_files/__db.80000001.d9f23b56
fileops: unlink db_files/__db.80000001.d9f23b56
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 463
DB_LOGC->get: LSN 1/463: invalid log record header
DB_TXN->abort: log undo failed for LSN: 1 463: Input/output error
fileops: close db_files/log.0000000001
PANIC: Input/output error
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 463
PANIC: fatal region error detected; run recovery
DB_LOGC->get: LSN: 1/463: read: DB_RUNRECOVERY: Fatal error, run database recovery
DB_TXN->abort: log undo failed for LSN: 1 463: DB_RUNRECOVERY: Fatal error, run database recovery
fileops: close db_files/log.0000000001
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
dbp->open end
dbp->close
PANIC: fatal region error detected; run recovery
envp->close
File handles still open at environment close
Open file handle: db_files/log.0000000001
fileops: close db_files/log.0000000001
PANIC: fatal region error detected; run recovery
Database 'db_files//test_aaps.db' open failed: DB_RUNRECOVERY: Fatal error, run database recoveryDatabase close failed: DB_RUNRECOVERY: Fatal error, run database recovery
environment close failed: -
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 -
Running Multiple Instance of indesign server using com calls
Hello All,
I am new to this community , can anyone help me in understanding how can i run multiple instance of indesign server using com calls.. i am using jacob library in java for com calls ..
ThanksHi Soni,
Web colsole --> your domain --> your server --> configuration -->
general --> Listen Port / Listen Address
Regards,
Slava Imeshev
"Soni " <[email protected]> wrote in message
news:3dcfbbcb$[email protected]..
>
Hi:
Is it possible to run two seperate instances of WebLogic server 6.1 onsame the
server both listening on port 80?
Details about the instances:
Instance 1
Domain names : fasnets
Server name: envext
Listen Address : 155.x.x.1
Listen Port : 80 :
External DNS : www.acme.com
Instance 2
Domain names : fasnets1
Server name: envext1
Listen Address : 155.x.x.2
Listen Port : 80 :
External DNS : www.acme1.com
Thanks,
Soni -
How can I run multiple instances of an app in netbeans?
Hi,
I would like to run multiple instances of an app in netbeans, this is essential when making GUI changes and you want to compare them with the older version.
Thanks in advance,It is still true that Netbeans cannot launch the same project twice, even with the latest 7.2 and JavaFX Beta version. When trying to "run" the second instance, Netbeans tries to rebuild the project jar file but can't delete it because it is "locked" by the first instance.
For JavaFX projects, I start one instance by double-clicking the jar file (in the project's dist folder), then use Netbeans to launch the second instance. For comparing your app's old vs. new screens, save the old app version by copying the project folder to another place and use the double-click jar to launch the old app, then proceed to revise the new app version and launch it under Netbeans. That's how you run one version "outside" another version. -
Running multiple instances of same servlet
I am trying to run multiple webapps off of the same weblogic5.1 instance.
I have setup the webapps and they work individually, but I need one servlet
to load at startup.
I have only been able to do that by including it by name in
weblogic.properties
#webApp named
weblogic.httpd.webApp.demand=d:/stat_forecast/
#register servlet so it runs on startup
weblogic.httpd.register.AppInitServlet=com.ai.servlets.AppInitServlet
weblogic.httpd.initArgs.AppInitServlet=AppConfigFilename=d:/stat_forecast/pr
operties/forecast.properties
weblogic.system.startupClass.aiservlet=weblogic.servlet.utils.ServletStartup
weblogic.system.startupArgs.aiservlet=servlet=AppInitServlet
This works until I try to add another instance of AppInitServlet for a
different webApp
#webApp named
weblogic.httpd.webApp.supply=d:/supply/
#register servlet so it runs on startup
weblogic.httpd.register.AppInitServletS=com.ai.servlets.AppInitServlet
weblogic.httpd.initArgs.AppInitServletS=AppConfigFilename=d:/supply/supply.p
roperties
weblogic.system.startupClass.aiservletS=weblogic.servlet.utils.ServletStartu
p
weblogic.system.startupArgs.aiservletS=servlet=AppInitServletS
The servlet does not run a second time.
Is there a way to move the AppInitservlet to inside the webApp and maybe use
the web.xml to start each one individually?
Thank you for any insight
John Norton
Indent Inc
John Norton
Indent Inc.
(Innovative decision technologies, inc.)
[email protected]
Replying to myself to try and clarify.
We are trying to run 2 or more webapps, each webapp tryes to call the
servlet AppInitServlet.
The servlet will not allow more than one instance to be in a context.
In tomcat the servlet works to give a separate instance for each app.
"JohnNorton" <[email protected]> wrote in message
news:[email protected]...
> I have sp8 on one version and that does work for the load on startup. One
> problem solved, thank you.
> Second part of same problem
> In tomcat where we were developing, we could have multiple instances
of
> the AppInitservlet (for different Apps) and it kept them all separate.
> In WL51 it starts the first correctly, but does not keep them
separate,
> so the second instance does not happen. It is designed so that
multiple
> calls do not instantiate (this would normally be within one instance of
one
> App).
> I had thought that if the servlet was load-on-startup from the webApp
> web.xml file that they would be separate. Any more ideas or clues?
>
> Thank you
>
> John Norton
>
> "Dimitri Rakitine" <[email protected]> wrote in message
> news:[email protected]...
> > Try it with the latest service pack - load-on-startup in web.xml was not
> > supported until sp8 or so.
> >
> > JohnNorton <[email protected]> wrote:
> > > I am trying to run multiple webapps off of the same weblogic5.1
> instance.
> > > I have setup the webapps and they work individually, but I need one
> servlet
> > > to load at startup.
> > > I have only been able to do that by including it by name in
> > > weblogic.properties
> >
> > > --------------
> > > #webApp named
> > > weblogic.httpd.webApp.demand=d:/stat_forecast/
> >
> > > #register servlet so it runs on startup
> > > weblogic.httpd.register.AppInitServlet=com.ai.servlets.AppInitServlet
> > >
>
weblogic.httpd.initArgs.AppInitServlet=AppConfigFilename=d:/stat_forecast/pr
> > > operties/forecast.properties
> > >
>
weblogic.system.startupClass.aiservlet=weblogic.servlet.utils.ServletStartup
> > > weblogic.system.startupArgs.aiservlet=servlet=AppInitServlet
> > > ---------------
> > > This works until I try to add another instance of AppInitServlet for a
> > > different webApp
> > > #webApp named
> > > weblogic.httpd.webApp.supply=d:/supply/
> >
> > > #register servlet so it runs on startup
> > > weblogic.httpd.register.AppInitServletS=com.ai.servlets.AppInitServlet
> > >
>
weblogic.httpd.initArgs.AppInitServletS=AppConfigFilename=d:/supply/supply.p
> > > roperties
> > >
>
weblogic.system.startupClass.aiservletS=weblogic.servlet.utils.ServletStartu
> > > p
> > > weblogic.system.startupArgs.aiservletS=servlet=AppInitServletS
> >
> >
> > > The servlet does not run a second time.
> > > Is there a way to move the AppInitservlet to inside the webApp and
maybe
> use
> > > the web.xml to start each one individually?
> > > Thank you for any insight
> >
> > > John Norton
> > > Indent Inc
> > > --
> > > *************************************************
> > > John Norton
> > > Indent Inc.
> > > (Innovative decision technologies, inc.)
> > > [email protected]
> >
> > > *************************************************
> >
> >
> >
> >
> > --
> > Dimitri
>
>
>
Maybe you are looking for
-
Hi All, After uploading data from file to internal table i want delete the file from the directory. How to do this any function modue for this? Thanks and Regards Parthipan.
-
hi, i have a form page where i am hard coding data into a table with the help of a process. I have a blob column in the table and i want to insert the data in to the column of blol.i am not able to do so. my table has following columns ID NUMBER
-
Can I set parental control on firefox for a specific user only?
I'm using windows 7 and firefox 18.0.2. On my PC I have my Admin account and my kids account. Now as they're coming to an age they're needing Internet access for projects and so on, I wonder if I can set parental control on firefox (by add-on?) as I
-
Creating a trip request using HRTRV_IF_MODIFY_TRIP in 5.0
I am working on modifying an existing Travel and Expense application for a new client. We've moved the existing application from 4.6C to a 5.0 system. The issue I'm having is the standard function module for creating trips, HRTRV_IF_MODIFY_TRIP, is e
-
How can I set a description during the FI-TV posting (PRFI transaction)
I would like to set a description in the FI text position field (BSEG-SGTXT) during the posting of travel management (PRFI). Thanks