Tomcat : Hlow to run more than 1 instance of tomcat server on same machine?

Hi,
How to run more than 1 instance of tomcat server on the same machine.
I use tomcat 5.5. ,updated port number for second instance and tried to run,it takes the same old port number .No batch file available with this version to update the home directory to second instance to run the second server..
How to work on clustering and load balancing on tomcat server?
Any inputs?
Thanks in advance..
Ani

Anitha123 wrote:
We have only 1 dedicated server maintained by third party for hosting..
If are only getting your site hosted, then, normally, the host would handle clustering (to your sepcifications, of course, but it is normally the hosts responsibility).
If i need to implement clustering and load balancing for tomcat server then do we need to go for 2 different servers for production environment?
Yes, you would need two, or more, servers.
Also please guide me on how to implement clustering and load balancing for tomcat server by running 2 instances on 2 different machine? I'm a newbie to it..
It should have no (or at least minimal) impact on the code (as long as you are using beans, sessions, and the other components properly). It is handled by the web container (by the tomcat in this case). The tomcat documentation should show how to set it up (if it supports it all, I don't know, we don't have Tomcat at work, and at home I use only a single).

Similar Messages

  • Cannot run more than one instance of a remote app in remote desktop services Server 2012

    All,
    I installed "Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style" using the instructions here http://blogs.technet.com/b/yungchou/archive/2013/02/07/remote-desktop-services-rds-quick-start-deployment-for-remoteapp-windows-server-2012-style.aspx
    I need to set up an image viewing program (Olyvia) to allow students using Macs and iPads access to this windows only application in order for them to get their work done.  We may have 12 or more students accessing and trying to run the Olyvia application
    at any one time.
    All works good, except that I cannot run the Olyvia application (setup as a remoteapp program) more than one instance at a time.  That is, when I start up "olyvia" on a Mac, it works great.  If I leave it up and running, and then try
    and start up "olyvia" on an iPad (using different accounts), I get the following error message:
    "Cannot run more than one instance of this program simultaneously.  Either the program is already running, or it has not been terminated completely."
    I need to understand the root issue.
    1.  Is this a licensing issue?  So, I need to add some CALs to the RDS server?
    2.  Is this a application issue with "olyvia"?  So, no matter what I do, it is not going to be able to be used by more than one person at a time when configured as a remoteapp?
    3.  Did I not "publish" the application correctly?
    4.  Is this happening because I followed the "quick start" guide?
    Appreciate any help I can get on this.  We have no problem getting CALs, I just need some help with the root issue.
    Thanks,
    Geoff Weatherford
    CVMBS, CSU

    Hi Geoff,
    Each application uses different techniques for determining if multiple instances are running.  If you can determine what method it is using then perhaps you could use App-V or other virtualization software.
    In the best case you really should direct your question to the maker of Olyvia.  The reason I said that is they specifically designed their software to prevent multiple instances, so the first question is, why?  Is it related to Licensing? 
    Compatibility?  If you knew the specific reason(s) why they are doing it and the technique used then at the point using a virtualization technique may be the best option.
    -TP

  • Using the the multiple profiles and running more than one instance of Fire fox at atim

    I use F/F in a gaming situation I needed to be able to run more than one session at a time and read about a feature called multiple profiles. Then I read iin another forum that I could have multiple instances with the following bat file :
    @echo off
    set MOZ_NO_REMOTE=1
    start "" "C:\Documents and Settings\Hilton Wiggins\My Documents\Fire Fox non Beta\firefox.exe" -p-no-remote
    set MOZ_NO_REMOTE=0
    I also have the Beta 4.06 on my machine and even though the batch file directs it to wither the Beat or the Non Beta they both seem to track the profiles and can be used in either version.
    However It's not working as I described running two browsers with grease monkey it will start to mis handle data and they both lock up

    There is no need to set MOZ_NO_REMOTE, remove that part of the bat file. Change the start line to:
    start "" "C:\Documents and Settings\Hilton Wiggins\My Documents\Fire Fox non Beta\firefox.exe" -no-remote -p "profile name"

  • Can I have more than one version of Reader on the same machine?

    I'm running Reader 8 because I like the user interface better than the more recent versions.  I'd like to also install the latest version only for some integrated tools that require it for use with AIR.  Can I have both installed?  I don't see any options when I try to download and install the latest versions (like where to install the software.  Ideally I'd like Reader 8 to be my default application to open .pdf documents.
    Thanks in advance,
    Gabor

    C F,
    Thanks for the reply.  In the meantime I have found that my integrated tools (Xilinx Document Navigator) allow me to open documents externally using any version / brand of reader.  It's not quite as nice as seeing the documents in the tool's own windows, but it's a good enough option for me given the relative infrequency I use this tool.  If I decide to try to integrate the Document Navigator with Adobe Reader, I might get away with using Reader 10.  Is there an app note on installing more than one version, or is this so "not recommended" that I'm on my own if I want to try it?
    Regards,
    Gabor

  • Jsp session problem when more than one user is loging from the same machine

    Hi everybody,
    I have created a login page and i use to store user name and password using sessions. It is working fine for one user from one machine. But if two or more users logged from the same machine, all the users are getting the same data as of the last user logged in. Also if one user is logged out all user sessions on that machine are expiring (same as previous YAHOO problem).
    i think there is problem with session variables. The user name and password which i am storing in session variables are updating the same variables for all users. I think a seperate set of session variables are not creating for each user login.
    Can any body help me plz....
    regards,
    Prasanth.C

    First, you need to clear any cookies you are setting.
    Second, you need to synchronize some key data fetching blocks in your servlet.
    Third, ensure that you are invalidating a session properly.
    Don't ask me for more details. Google around for information ;)
    Richard.

  • Running more than one instance of the database on oracle 9i

    I have a oracle 9i database on linux 8 . I had created a database db1 . Its working fine
    then i created another database db2 on the same server.
    When i am trying to start the database with the command
    sqlplus /nolog
    sql> set instance db2
    it gives error sid coudn't be found.
    How can i resolve it. My other database is running fine at startup also.
    Is there any modification needed in startscript to start this database also

    Hi
    the SID is an environment variable, so try:
    at the unix-prompt:
    $ ORACLE_SID=DB2
    $ export ORACLE_SID
    $ sqlplus /nolog
    SQL> connect / as sysdba
    getting:
    SQL> connected to an idle instance
    and now
    SQL> startup
    regards
    Roman

  • How to open or close oracle instance while more than one instance installed on serve

    i try to connect with internal, it said:
    can not shutdown in a dispatch

    using internal is no longer
    recommended.
    You can try by
    SEt ORACLE_SID=your sid
    and
    sqlplus /nolog
    connect sys as sysdba;and issue startup or shutdown
    commands.
    Sundar

  • Possible to run more than one iDVD at one time?

    Hiya, I'm currently running a nice shiny QuadG5 and when running iDVD6 I've noticed it doesn't use all the resources my machine has to offer (it usually hovers at around 130% out of 400%). Does anyone know if it's possible to run more than one instance of iDVD06 at once? I was thinking about creating a copy of the whole iDVD app and seeing but it's running a render right now so i can't disturb it. Seems a shame to have those yummy G5's sitting there doing naff all.
    cheers, Dave

    on my other hp scanner and copier i could set the no of copies i wanted. on this one i cannnot find that option.
    thanks for the reply

  • Two running instances of Weblogic on the same machine

    I need to run at least two instances of Weblogic on the same machine. My Company GE Capital purchases the Clustered version and the BEA Engineer who did the install did not know Unix and could not intall the instances. Could you please give pointers to on how to do this? You can also write me to [email protected]
    Thanks,
    John G

    ....plus, you have to consider the license issue.
    Vidar wrote:
    >
    It does not sound to bad, but would it not be hard to cooperate with other
    people, since you will often use API's and EJB's developed and deployed by
    other team-members?
    Does anybody have any documents or ideas on what the best way to cooperate
    in a development-team is?
    "Michael Girdley" <[email protected]> skrev i melding
    news:39e15942$[email protected]..
    Yes, that is the best way to do it.
    In practice, we have found that each developer having their ownworkstation
    with an instance of WLS works best.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "newbie" <[email protected]> wrote in message
    news:[email protected]..
    I am also pondering on the same problem right now...
    I am trying to get an environment setup so that multiple
    developers can have their own weblogic "instances" to play
    with - so that each of them can start/stop the server,
    deploy EJBS etc without affecting one another in a UNIX
    environment. to accomplish this - do I just install the
    server multiple times with different port numbers on the
    same machine or is there a a better way to do this?
    Appreciate any input.
    Thanks
    "john Gongora" <[email protected]> wrote:
    I need to run at least two instances of Weblogic on the same machine.
    My
    Company GE Capital purchases the Clustered version and the BEA Engineerwho
    did the install did not know Unix and could not intall the instances.Could
    you please give pointers to on how to do this? You can also write me to
    [email protected]
    Thanks,
    John G

  • Running Air in More than One Instance of an Application

    Is there a work around to allow more than one instances of an Air Application to run?
    Currently our client uses dual monitors  they will spin up two applications.  One is to Inquiry data the other is to enter data.  I know I can create another project and deploy it under another name but that seems clunky.
    We are using  AIR  with Flex/Blaze/FlexMdi.
    Any information would be greatly appreciated.
    Thanks
    Steve

    Hi,
    I'm not too sure if the workaround proposed below will work or not. But it seems worth a shot:
    Create a new window when you get the invoke event. Find your desired screen's bounds by going through the static array Screen.screens. Assign that bounds to your newly created window.

  • Can I open more than one instance of CC5.2?

    In my experience, I have not been able to find a way to open more than one instance of CC5.2.  If I want to run an SOD user analysis and an SOD role analysis, for example, I have to run one and wait for the results to return before I can run the next analysis.  
    If I open a new instance of Internet Explorer and type in the url for CC5.2 while CC5.2 is already running in a separate instance, it overwrites whatever is running and reopens CC5.2 all over again.
    In CC4.0 I was able to open multiple SAP sessions and run multiple SOD reports.  I understand 5.2 is a web app, but it seems the code should be smart enough to allow me to open multiple IE instances to run multiple analyses. 
    Am I missing something?
    Thanks,
    Sandy

    Hi Sandy,
      What about option to run your analysis jobs on the background ?
      You can still be in your IE session, but schedule several analysis to run on the background. On completion of the jobs, you'll be able to check output results for each of them.
      Advantage of this is that it also doesn't depend on your link between your machine and CC server which could be an issue for the foreground jobs.
    Best regards,
    Laziz

  • WebLogic Error : Registered more than one instance with the same objectName

    HI there, I'm facing a big problem. I have two environments installed on the same physical machine.
    I have ALSB and WLI servers running out there.
    Environment 1 - WLI port running at 7011 domain name : stp_wli_domain and ALSB port running at 8011 domain name: stp_alsb_homo1 - folders- stp_wli_domain / stp_bea_alsb_homo
    Environmnet 2 - WLI port running at 7211 domain name : stp_wli_domain2 and ALSB port tunning at 8211 domain name : stp-alsb_homo2 - folders - stp_wli_domain2 / stp_bea-alsb_homo2
    Everything was working fine, but these days I had install new deployments on both environment and I got this error :
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : stp_wli_domain:ServerRuntime=wli_wls01,Name=stp_wli_domain,Location=wli_wls01,Type=AIRuntime new:com.bea.wlai.management.AIRuntimeMBeanImpl@bcf22dc existing com.bea.wlai.management.AIRuntimeMBeanImpl@de02e6c
    The weird is : There is no same object name, as you can see, domains are different, folders are different and ports are diferrent, including multicast addresses.
    Have you guys seen this before ?
    I'm under pressure here, 'cause some projects had stopped to work.
    Please I would appreciate any help.
    Tks.
    Edson

    HI there, thanks for attention..
    See ...
    There's a lot of confusion with these env's .
    I did not built this, so... I'm cleaning my hands.... anyway... :)
    I must fix....
    Well basically if we have two env's, so we have different project each one right ?
    Ok, but I was told that if you have on the same network and same physical machine the name of AdminServer as "AdminServer" in all domains, so it goes with problems... I never heard about it... but is a good practice you put the names for example :
    WLI - WLIAdminServer
    ALSB - AlsbAdminServer
    WLI2 - WLiadminServer2
    ALSB2 - ALsbAdminServer2
    I would do it.. this way..
    But how it wasn't me...
    We got..
    WLI - WliAdminServer
    ALsb - AdminServer
    WLI2 - AdminServer
    ALsb2 - AdminServer
    Have you got it ?
    So... I was told that this could be a problem, almost all AdminServers with the same name... guess what ?Some Projects are back to work. but not at all.. only some.. so I 'm breathing better now... but I would like to know if you seen this before ?
    I would appreciate your help again.
    Unfortunately there's no detailed stack trace to track this
    Tks.

  • Can I launch more than one instance?

    Can I launch more than one instance of the same AIR
    application?

    Check out page 309 of the AIR Dev Guide "Only one instance of
    an AIR application is started. When an already running application
    is invoked again, AIR dispatches a new invoke event to the running
    instance. It is the responsibility of an AIR application to respond
    to an invoke event and take the appropriate action (such as opening
    a new document window)."
    It looks like we have to handle this InvokeEvent.INVOKE event
    and programatically create a new instance of the application.
    If anyone's done this already an example would be a big help
    as this will be a VERY common use case.

  • Can I run more than two Mac OS X virtual guests on a Mac host?

    The way I read the Mac OS X 10.10 Yosemite license (http://images.apple.com/legal/sla/docs/OSX1010.pdf), I am not allowed to run more than two (2) virtualized  Yosemite guests on a Mac virtual host:
    (iii) to install, use and run up to two (2) additional copies or instances of the Apple Software
    within virtual operating system environments on each Mac Computer you own or control that is
    already running the Apple Software, for purposes of: (a) software development; (b) testing during
    software development; (c) using OS X Server; or (d) personal, non-commercial use.
    There's no exception for running guests on a large Mac Pro, or anything like that.
    I just want to confirm I'm interpreting this part of the license correctly?  Thanks for any feedback!

    Don't think that this will work, despite PSE 8 not being that old. Undoubtedly some of the security and file system changes in OSX 10.7 and 10.8 are at play here thast the installer can't cope with... Consider getting PSE 11.
    Mylenium

  • Making FCSvr run more than on job at a time?

    Hello everyone,
    How do I make FCsvr run more than one job at a time? I'm watching my Job Progress window and only one clip is being worked on at a time (creating thumb, poster, etc.) Also, when I look at the QMaster Admin it shows only one core working (even though I have all eight cores set for compressing).
    Thanks for any help you can give me
    Micheal

    It's actualy very long to explain in this post but I recommend you read all te Qmaster manual to understand the way it works.
    Just to help you in the process
    1) What you see in the Qmaster admin is a cluster wich can have several instances of compressor within it to run several process at the same time
    2) If you have in fact more than 1 instance of compressor within the cluster (lets say 4) you have 2 options depending of the compressor setting you are using. If the Allow Job Segmenting is ON in the setting all 4 instances are going to be use to transcode the clip and you can see the segments (batch monitor) in wich the file is partition to transcode them separately (in this case 8 segments of video and 1 audio). If the option is OFF only 1 instance is going to run to transcode 1 file, but in this case you can have up to 4 files transcoding at the same time.
    3) Make sure you have the qmaster cluster selected in the compressor option in the preferences panel of the FCS admin window.
    4) The number of cores used to trancode files is manage by Qmaster but I can tell you that if you have an 8 core MACPRO with 4 instances running, around a 90% of the CPU is being used for the compressor when you have 4 jobs running at the same time or 1 with job segmenting ON. When job segmenting is off and there is only 1 job running I saw over 50% of the system cpu running on that process.
    5) Probably the most important point: I really hope for your own good that you have Qmaster and FCS running on 2 different machines. As you can see Qmaster is using serious CPU during trancoding.
    Hope this help

Maybe you are looking for

  • Can you restore your apps after setting the same iphone up as new iphone? And can you restore each app manually?

    I restored my iphone because I have hundreds of apps and wouldn't want to delete them. Well I don't want to exactly permanently delete them. I just want them off my iphone as it makes it laggy and kills the battery. So I backed it up. However, I am w

  • Use jstl tags in jsf page

    I have h:dataTable in each row of which i'd like to output row data as text, inputfield or link depending on row data type                     <h:dataTable id="pnlHistory" value="#{UserOrdersBean.orderLineWrappers}" var="wrapper" rendered="#{UserOrde

  • Flahback table to before an update

    db is 10.2.0.4 os is AIX 5L Hi. I have run an update on a table. I can see the update on the v$sqlarea view. What is the best way to flahback the table to just before this update? I can see a first_load_time column in the v$sqlarea view. Should I fla

  • Compiler won't run application

    I downloaded Java 1.3.1_04 and I believed i installed it correctly when I compile a class the message is cannot run application. I set all paths correctly My dos prompt says the the Jre is installed. Why won't it run

  • Order (T.Code-IW32)

    Dear All In Maintenance order iw32 , there is operation header and sub operation description. I want to see in graphic netstructure of Header and sub operation. Thnx in Advance Sudip