How can I stop the spawned process at berth 7 using jetty.sh?

I am using Jetty 7.4 for one of my projects. I need to configure it so that it can automatically start / stop whenever the server starts or goes down. In addition, I should be able to start / stop the server on demand. I use the start / stop script that comes with the berth (bin / jetty.sh). The server starts just fine. However, when it comes to stopping the server, I run into some problems.

Jetty expects you to start the server with the command line parameter "--exec", and this parameter spawns another JVM instance. Now two processes are working for the berth. When you try to stop the berth server using a script, the first process will complete successfully. However, I can still see the generated process.

I searched the Internet and people asked this question in several places, but I could not find a solution to this problem. Any ideas?

thank,

NG

+5
source share
1 answer

This does not answer the question, but I worked on it by specifying JVM parameters in a new file in /etc/default/jetty. There you can set the JVM parameters using something like this:

JAVA_OPTIONS="-XX:MaxPermSize=128m -Xms1024m -Xmx1024m"

--exec, jetty.sh .

+1

All Articles