Tomcat as a Service with -Xms512M -Xmx1024M

Hello all,
In order to run successfully my application with Tomcat 5.0.20 on Windows XP I had to change the memory settings.
So in the System environment variable I've added:
JAVA_OPTS = -Xms512M -Xmx1024M
CATALINE_OPTS = -Xms512M -Xmx1024M
and if I launch Tomcat with the startup.bat, my application runs fine.
Now I am trying to run Tomcat as a Windows Service (using service.bat install) but this time Tomcat runs out of memory and generates exceptions despite the fact I've changed the following line in service.bat from:
"%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto etc...
to
"%EXECUTABLE%" //IS//%SERVICE_NAME% JvmMs 512M JvmMx 1024M --Jvm auto etc...
What am I doing wrong?
Many thanks for your suggestions.
regards
denis

Hello,
I had the same problem and I found that the tomcat.exe can be used to install a service.
tomcat -install Tomcat %java_home%\jre\bin\server\jvm.dll "-Djava.endorsed.dirs=%catalina_home%\bin;%catalina_home%\common\endorsed" "-Djava.class.path=%java_home%\lib\tools.jar;%catalina_home%\bin\bootstrap.jar" "-Dcatalina.base=%catalina_home%" "-Dcatalina.home=%catalina_home%" "-Djava.io.tmpdir=%catalina_home%\temp" -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop
Succes

Similar Messages

  • How to start and Stop Running services with Java Programme

    I have some Service Runinig on My Windows machine like Tomcat Server,i want to update some file in Tomcat server through java program ,it works only when my tomcat stops ,I want to write peice of Code so that i can stop service with my prog and start after updating my files

    heres something that may help yeah
    http://wrapper.tanukisoftware.org/doc/english/introduction.html

  • Anyone have trouble connecting to web services with CF10?

    I'm trying to connect to InDesign server running in the same box @ http://localhost:18383/service?wsdl and this gives me the error "Web service operation RunScript with parameters ... cannot be found". I tried toggling web service version in CF admin to 1 and 2. I tried with CF updates, without updates. Tried in a different box, it is the same.
    When I dump my web service object, before invoking the function, it display WSDL structure correctly with all functions in it, including "RunScript". So I guess, create object part worked correctly.
    Uninstalled CF10, Installed CF9 in the same box, it works fine. 
    Has anyone experienced something similar? Is there any limitation in TomCat executing web services in a high port (18383)?
    Update:
    I send the SOAP request to InDesign server manually using CFHTTP and it works in CF10. Seems like CF10 somehow did not respect the WSDL instructions.

    Nataliya,
    Is the printer connected to a wireless network? 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Web Services with REST, SOAP and  JAX-RPC

    Hi,
    Can somebody who has developed web services extensively comment/suggest a java development environment that works best for developing web services mainly with REST. I've found that Eclipse with Axis2 and Tomcat works well. But I would like to get your opinion on it and some other alternatives.

    Hi,
    Please help me its urgent.
    can u give me a detail example how to do Web services
    with REST.
    Here is my id [email protected]
    Thanks in advance.You can do this in many ways. It depends on how heavy your service is. You can write a simple servlet that will take a REST (I'm assuming you know what REST is) request and parses it out, calls a server-side method and generates a REST response.
    Another way is to use a web-service container such as AXIS. You can read some examples and documentation on their website. AXIS2 has REST support as well.

  • Web services with XFire.

    Hi,
    I am completely new to web service with XFire topic and want to work on any sample application to get some idea on web services with XFire.

    check your Tomcat documentation and try to test with relative path
    Edited by: RezaRavasizadeh on Sep 2, 2008 5:40 PM

  • Tomcat: prefix in services-config.xml must be unique?

    Hi all, I've been trying to get my flex application communicating with Tomcat and now have it working
    Just trying to confirm something that took me many hours to get right and may help others along the way..
    Originally I modified the BlazeDS webapp by updating the remoting xml and putting in my own classes and it worked without any problems
    I then removed the BlazeDS webapp directory out the tree and created a new one carefully checking each step.. but there was nothing written to catalina log file at any time when running the app or any sign of communication even in debug mode
    I then moved the sample BlazeDS webapp back and when starting Tomcat it complained of duplicate ID's (here is the message: Exception: flex.messaging.config.ConfigurationException: Can not add destination with id 'insert your remoting destination id' to service with id 'proxy-service' because another service with id 'remoting-service' already has a destination with the same id)
    Eventually I noticed in services-config.xml logging section for my new webapp that the <prefix> was still set to BlazeDS - changed this to the new webapp directory name and not only did the exceptions disappear but everything now worked
    So I'm thinking that the prefix is much more important than just a logging descriptor as the XML tag suggests
    Can anyone confirm this behaviour or shed some light?
    PS I should make clear the above problems were not when running the turnkey but on a fresh install of tomcat 6.0.29 on Centos linux using apache proxypass/reverseproxypass to redirect port 80 to 8080
    PS2 - I realise this is not a pure Flex question but it's related due to Adobe crafting a turnkey Flex/Tomcat install with Blaze and it's in the flex configuration files)
    I hope I've covered all bases in the question and look forward to knowing more... CHEERS!

    Hi all, I've been trying to get my flex application communicating with Tomcat and now have it working
    Just trying to confirm something that took me many hours to get right and may help others along the way..
    Originally I modified the BlazeDS webapp by updating the remoting xml and putting in my own classes and it worked without any problems
    I then removed the BlazeDS webapp directory out the tree and created a new one carefully checking each step.. but there was nothing written to catalina log file at any time when running the app or any sign of communication even in debug mode
    I then moved the sample BlazeDS webapp back and when starting Tomcat it complained of duplicate ID's (here is the message: Exception: flex.messaging.config.ConfigurationException: Can not add destination with id 'insert your remoting destination id' to service with id 'proxy-service' because another service with id 'remoting-service' already has a destination with the same id)
    Eventually I noticed in services-config.xml logging section for my new webapp that the <prefix> was still set to BlazeDS - changed this to the new webapp directory name and not only did the exceptions disappear but everything now worked
    So I'm thinking that the prefix is much more important than just a logging descriptor as the XML tag suggests
    Can anyone confirm this behaviour or shed some light?
    PS I should make clear the above problems were not when running the turnkey but on a fresh install of tomcat 6.0.29 on Centos linux using apache proxypass/reverseproxypass to redirect port 80 to 8080
    PS2 - I realise this is not a pure Flex question but it's related due to Adobe crafting a turnkey Flex/Tomcat install with Blaze and it's in the flex configuration files)
    I hope I've covered all bases in the question and look forward to knowing more... CHEERS!

  • Debugging a Web service with JDeveloper 902

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

  • Running Tomcat as a service

    I have two questions about running Tomcat as a service.
    First, when I try to install and start tomcat 3.3.2 with the java sdk 1.4.0 using jk_nt_service, the service won't start. When I execute the following command, jk_nt_service -S Tomcat-3.3-2-Dev, I get a response of Tomcat-3.3.2-Dev failed to start. When I execute the following command, net start Tomcat-3.3.2-Dev, I get a system error 1067 response. Does anyone know how to get around this error?
    Second, if we try to run Tomcat 4.1.27 as a service, we get very slow response compared to running startup.bat in the bin directory. Does anyone know why this is and what could be done to improve the performance?
    Jim Field

    I don't know the answer to the first question.
    Regarding the second one: when you say "slow response", do you mean for every request you send to the service compared to sending the same request to Tomcat started with startup.bat, or are you referring to just starting the service?
    Have you measured the response time for a number of requests to both the service and script-started Tomcat, or is this a subjective judgement? MOD

  • Web services with axis & servlets ????

    Hi !
    Iwould like to know if it is possible to reach a tomcat servlet when we are running a service with axis integrated in tomcat : can we use the servetcontext and share it between tomcat & axis ????
    TU a lot...
    PA

    Hi,
    As far as I know if Apache soap used to implemented as a servlet. If axis is implemented the same way ( I am not sure about this), then it should be able the share the context with other servlets within the container. Hope this helps.
    Cheers,
    Arun

  • Preparations to learn Web Services with Java

    I have only worked with JSP,JDBC, JavaBeans and Servlets in Tomcat using MVC architecture the past couple years. I have never used Struts framework. I am thinking about taking a Web Services with Java course and was wondering if my background will be enough to keep up with the advance topic of Java web service?

    Yes, at first you should have to worry about understanding the basic concepts, WSDL, and a little bit of XML (it does not make very senso to study far too much because sometimes you won't use all the api you may study).
    The focus point is understanding that you can build a web service infrastructure passing using many different approaches: starting from wsdl, starting from java, based on WSDL, based on REST and things like that.
    JAX-WS is a very powerful toolkit that covers well all the possible approaches you may have.
    Anyway starting from scratch is quite frustrating... it is difficult to find around a good guide that covers all the aspects and make you understand the Big Picture. That's really the focus point.
    There is a very good book about written by Mark Hansen.
    Check out also that there are so many franmeworks around that implements the specification: almost every Corp. implements its own stack.... Sun, Apache, Spring, IBM, JBOSS and so on.
    This is quite misleading at first.
    Metro is very good and very well implemented with netbeans, and it's easier to start with it. anyway it hides you sometimes what's going on underneath.
    I find CXF is a very good framework, and if you love the SPring wayyou should consider give it a chance.
    I have no experience of other frameworks.

  • Hi experts - cannot run HTTPS on tomcat as a service application

    I have configured HTTPS on my tomcat 4.1 web server.
    Now, when I run Tomcat as a console application it works fine and there is no problem. But When I run Tomcat as a service application, the server starts as a service properly but when I try to access the pages it says that "The Page Cannot Be Displayed"
    The configuration for HTTPS in conf/server.xml file is like this:
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
                   port="443" minProcessors="5" maxProcessors="75"
                   enableLookups="true"
                acceptCount="100" debug="0" scheme="https" secure="true"
                   useURIValidationHack="false" disableUploadTimeout="true" >
          <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
                   clientAuth="false" protocol="TLS" keystorefile="C:\Documents and Settings\deepak\"/>
        </Connector>M using tomcat 4.1
    Please experts help me with this.

    And what does your catalina.out logfile say?

  • SAAJ API Web Services With Attachments

    I have developed a Web Service and it is running successfully. Now I want to pass attachments to it in the form of SOAP Messages (using SAAJ API). I saw several examples on the web of how to create a request with a SOAP Message and include attachments/body parts in it. But what I cannot understand is how to recieve this message in my web service. I came across an example which used a servlet to recieve the message but I cannot understand how a servlet can be fitted between the web service and the request. I am new to Web Services in Java and would appreciate any help. A detailed tutorial would be great as to how to implement SOAPMessages receiver. I am using Eclipse with Tomcat.

    hi berta,
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/ea656273b74cf386a1f29fc55721fd/frameset.htm
    HTTP error 406 when consuming a Web Service with attachment
    let me know u need any further info
    bvr

  • Tomcat Denial of Service Attack

    The signature id 5648 (Tomcat Denial of Service Attack) seams to be prone to false positives....
    We have seen in a number of incidents, that when the destination of this attack uses the ephemeral port of 8007 with an established connection on TCP port 80, the signature is often triggered. The signature looks for the content \xfe\x0f
    Is anyone else seeing this problem?

    Can you please send me some more information and we can look into refining this signature.
    An IPLog dmp file or a traffic capture would help me dig into the cause of the false positive.
    -jonathan

  • Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them eithe

    Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them either failing or not sending at all.  Is there an outage in the Cleveland, Ohio area (zip codes 44129, 44134, 44137) or anything else I can do to resolve this issue?

    Not that I'm a Verizon employee, but I have experience in the field. An LTE tower will only extend up to, on a perfect day, with no elevation, 6-7 miles. On a typical day, you will be lucky at four (4) miles. The three ZIP codes you've given are all within about a 12 mile radius. That would mean that 2-3 towers are currently down at the same time, and Verizon would know about it within the hour. Being it's Cleveland, I'm sure they would receive numerous calls regarding an outage of that size.
    My point is that if you're having issues in all three ZIP codes, chances are it's a phone issue. If you're handset is simply not receiving LTE, but still receiving 3G, that would signify a SIM card issue. You need to get your SIM card replaced.

  • Issue with OSI PI WCF Web Service with wshttpbinding

    Hi Experts,
    System Details:
    SAP MII 14 SP4
    OSI PI Web Service: PITimeSeries
    I am having issue when trying to call OSI PI web service using http post. it is returning status 0 when i am using exception handler in BLS.
    Same web service works fine with basichttpbinding (SOAP 1.1)  but with wshttpbinding (SOAP 1.2) it is giving error.
    Following are Web config binding details for web service.
          <wsHttpBinding>
            <binding name="wsBinding_2011" sendTimeout="00:01:00" receiveTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
              <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
              <security mode="Message">
                <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
              </security>
            </binding>
          </wsHttpBinding>
    I am not sure it could be the issue with passing windows credentials.
    Did anybody consumed WCF web service with wshttpbinding with security mode as Message and clientCredentialType as Windows.
    Also i was trying to pass MYSAPSSO2 SSO token to service in http post but first i am not sure if this is correct windows token and second which header property of service should be mapped and i am not sure that I am going into correct direction or not.
    Please let me know what i am missing.
    I have tried following other options and tools:
    SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as
                      The security context token is expired or is not valid.
    MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per                                                                              my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
    WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
    WCF Test Client: Both bindings works fine
    Any help is appreciated.
    Thanks & Regards,
    Manoj Bilthare

    Hi Sam,
    The web service is valid following are details of testing on various tools.
    SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as The security context token is expired or is not valid.
    MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
    WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
    WCF Test Client: Both bindings works fine
    Please let me know if additional details required.
    Thanks & Regards,
    Manoj Bilthare

Maybe you are looking for

  • Mini display with vga adapter and vga multiplier

    running into problems with the mbp using a mini display adapter to vga and a vga multiplier.  no signal at the projector.  is there any difference between a vga signal from a pc and a vga signal from apple's mini display adapter to vga? ie. bandwidth

  • My Imac G5 screen is devoid of Red Tones

    Rarely it will flick onto full color spectrum for about 2 minutes. Then it reverts back to green, blue, greys. The computer doesnt seem to know it is only showing shades of green and blue. This has gone on for about 2 months. Earlier this year, befor

  • Work from home and just moved house, really slow i...

    Hello, I have just moved house ( 2 weeks ago) I use to get BT infinity so I was expecting a big drop but nothing like this. When I orderd my new BT package I was told to estimate speed of 12mb. My internet cuts out regularly - 5 to 10 times aday and

  • Can't load Mavericks.

    Hello, I can't load Mavericks via app store. This is my MacBook. MacbookPro 6,2 10.6.8 (2010) Snow Leopard. Please help, don`t know what to do.

  • Exception when opening tools - prefereces

    Hi- I just downloaded JDeveloper 9.0.3.1035 for Win 2000. Pointed it at a JDK 1.3.1, and ran the ojvm installer. When I try to open tools -> preferences, I get an error dialog with the following exception (below). Tried other JVMs without success. Ha