English 中文(简体)
如何改变 j瓦——在我们作为窗户手工操作时的 to门?
原标题:How to change java_opts for tomcat when we run it as a windows service manually?

I m 手工操作6号,作为青少年的窗户服务。 在开始之前,我需要改变 j。 我如何这样做? 而且,我是否能够动态地看到这些记录?

最佳回答

为了修改,你很可能需要编辑你使用的批量文件,以开始Tomcat。 我没有在Windows上运行Tocat,但$JAVA_OPTS载于我的<代码>catalina.sh。 页: 1

视像仪在视窗上动态,有两种选择,我知道。

  1. Download and install Cygwin, and then on the command-line, use tail -f logfilename like you would in Linux.
  2. Get the BearTail program and use that to follow your log files.
问题回答

I know this is an old thread but needed to correct some assumptions.

Just an FYI, Catalina. 电池板作为服务不使用。 这里,是改变“JAVA”的方法。 OPTS formcating as adows service.

  1. Open Services and click on the Tomcat service. Make a note of the service name (most likely Tomcat6).
  2. cd to the Tomcat bin directory
  3. Run the command

    页: 1

  4. Click on the Java tab

  5. 将备选办法(每条新线)列入 Java备选办法箱,并将初步和最高记忆定为1536和2048

    -XX:MaxPermSize=256m -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true

  6. 浮标

  7. Click on the general tab and restart the service

To change the settings, create a file named setenv.bat for windows or setenv.sh for Linux with entry as below:

视窗:

set JAVA_OPTS="-Xms256m -Xmx512m"

LC:

export JAVA_OPTS="-Xms256m -Xmx512m"

简略地将这一文件(Septenv.bat/setenv.sh)归档成百分数。 你的指挥档案(Catalina.bat/catalina.sh)已经做了如下陈述:

视窗:

if exist "%CATALINA_HOME%insetenv.bat" call "%CATALINA_HOME%insetenv.bat"

LC:

if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then
 . "$CATALINA_BASE/bin/setenv.sh"

elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then . "$CATALINA_HOME/bin/setenv.sh" fi This will take care the rest.

您可以在开始Tomcat之前通过指挥线人工确定您的JAVA_OPTS环境变量:

set JAVA_OPTS=youropts

或您可以编辑catalina.bat,与你想要的价值观一致。

在窗户中,切断了定点指挥的报价。 字面上是抽取。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签