Skip to content

separate tomcat and gsh process #13

Closed
ghost opened this issue Nov 22, 2016 · 4 comments
Closed

separate tomcat and gsh process #13

ghost opened this issue Nov 22, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2016

https://bugs.internet2.edu/jira/browse/TIERPACK-13

@ghost ghost self-assigned this Nov 22, 2016
@ghost
Copy link
Author

ghost commented Nov 22, 2016

worked with a fake process at the end.
bash-4.2# ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 11648 2588 ? Ss 01:02 0:00 /bin/bash /opt/bin/start.sh
root 62 0.0 0.1 11780 2800 ? Ss 01:02 0:00 /bin/bash
root 180 0.0 0.1 11644 2508 ? S 01:04 0:00 /bin/sh /usr/local/bin/httpd-shib-foreground
root 181 26.8 17.7 3068176 363940 ? Sl 01:04 0:17 /usr/java/latest/bin/java -Djava.util.logging.config.file=/opt/grouper/2.3.0/apache-tomcat-6.0.35/conf/logging.properties -server -Xmx512M -XX:MaxPermSize=256M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/grouper/2.3.0/apache-tomcat-6.0.35/endorsed -classpath /opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/bootstrap.jar -Dcatalina.base=/opt/grouper/2.3.0/apache-tomcat-6.0.35 -Dcatalina.home=/opt/grouper/2.3.0/apache-tomcat-6.0.35 -Djava.io.tmpdir=/opt/grouper/2.3.0/apache-tomcat-6.0.35/temp org.apache.catalina.startup.Bootstrap start
root 182 0.0 0.1 11648 2140 ? S 01:04 0:00 /bin/bash /opt/bin/start.sh
root 183 0.0 0.1 11644 2424 ? S 01:04 0:00 /bin/bash /usr/local/bin/run.sh
root 184 0.0 0.0 4324 620 ? S 01:04 0:00 sleep 1800
root 187 33.7 19.6 3131228 402832 ? Sl 01:04 0:21 /usr/java/latest/bin/java -Xms64m -Xmx750m -Dgrouper.home=/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../ -Dfile.encoding=utf-8 -classpath /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../conf:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../dist/lib/grouper.jar:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/grouper/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/custom/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/jdbcSamples/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/ant/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/test/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../dist/lib/test/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../src/resources: edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper -loader
root 189 0.1 0.8 273952 17524 ? S 01:04 0:00 httpd -DFOREGROUND
root 221 0.0 1.0 434748 21988 ? Ssl 01:04 0:00 /usr/sbin/shibd
apache 226 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 227 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 228 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 229 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 230 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
root 309 0.0 0.1 47432 3312 ? R+ 01:05 0:00 ps auxww
bash-4.2#

@ghost
Copy link
Author

ghost commented Nov 22, 2016

killed both java process

bash-4.2# ps -fea
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:02 ? 00:00:00 /bin/bash /opt/bin/start.sh
root 62 0 0 01:02 ? 00:00:00 /bin/bash
root 180 1 0 01:04 ? 00:00:00 /bin/sh /usr/local/bin/httpd-shib-foreground
root 181 1 15 01:04 ? 00:00:17 /usr/java/latest/bin/java -Djava.util.logging.config.file=/opt/group
root 182 1 0 01:04 ? 00:00:00 /bin/bash /opt/bin/start.sh
root 183 1 0 01:04 ? 00:00:00 /bin/bash /usr/local/bin/run.sh
root 184 183 0 01:04 ? 00:00:00 sleep 1800
root 187 182 21 01:04 ? 00:00:23 /usr/java/latest/bin/java -Xms64m -Xmx750m -Dgrouper.home=/opt/group
root 189 180 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 221 1 0 01:04 ? 00:00:00 /usr/sbin/shibd
apache 226 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 227 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 228 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 229 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 230 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 311 62 0 01:06 ? 00:00:00 ps -fea
bash-4.2# kill -9 180
bash-4.2# kill -9 187
bash-4.2# ps -fea
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:02 ? 00:00:00 /bin/bash /opt/bin/start.sh
root 62 0 0 01:02 ? 00:00:00 /bin/bash
root 181 1 12 01:04 ? 00:00:17 /usr/java/latest/bin/java -Djava.util.logging.config.file=/opt/group
root 183 1 0 01:04 ? 00:00:00 /bin/bash /usr/local/bin/run.sh
root 184 183 0 01:04 ? 00:00:00 sleep 1800
root 189 1 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 221 1 0 01:04 ? 00:00:00 /usr/sbin/shibd
apache 226 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 227 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 228 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 229 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 230 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 312 62 0 01:06 ? 00:00:00 ps -fea
bash-4.2#

@ghost
Copy link
Author

ghost commented Nov 22, 2016

You can run by hand with the container up both process again.
/opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/catalina.sh run &
/opt/grouper/$VERSION/grouper.apiBinary-$VERSION/bin/gsh -loader &

bash-4.2# ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 11648 2588 ? Ss 01:02 0:00 /bin/bash /opt/bin/start.sh
root 62 0.0 0.1 11780 2804 ? Ss 01:02 0:00 /bin/bash
root 181 8.0 17.9 3071408 367604 ? Sl 01:04 0:17 /usr/java/latest/bin/java -Djava.util.logging.config.file=/opt/grouper/2.3.0/apache-tomcat-6.0.35/conf/logging.properties -server -Xmx512M -XX:MaxPermSize=256M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/grouper/2.3.0/apache-tomcat-6.0.35/endorsed -classpath /opt/grouper/2.3.0/apache-tomcat-6.0.35/bin/bootstrap.jar -Dcatalina.base=/opt/grouper/2.3.0/apache-tomcat-6.0.35 -Dcatalina.home=/opt/grouper/2.3.0/apache-tomcat-6.0.35 -Djava.io.tmpdir=/opt/grouper/2.3.0/apache-tomcat-6.0.35/temp org.apache.catalina.startup.Bootstrap start
root 183 0.0 0.1 11644 2424 ? S 01:04 0:00 /bin/bash /usr/local/bin/run.sh
root 184 0.0 0.0 4324 620 ? S 01:04 0:00 sleep 1800
root 189 0.0 0.8 273952 17524 ? S 01:04 0:00 httpd -DFOREGROUND
root 221 0.0 1.0 434748 21988 ? Ssl 01:04 0:00 /usr/sbin/shibd
apache 226 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 227 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 228 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 229 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
apache 230 0.0 0.6 424316 12868 ? Sl 01:04 0:00 httpd -DFOREGROUND
root 362 0.0 0.1 11780 2176 ? S 01:08 0:00 /bin/bash
root 363 203 14.8 2785044 304576 ? Sl 01:08 0:08 /usr/java/latest/bin/java -Xms64m -Xmx750m -Dgrouper.home=/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../ -Dfile.encoding=utf-8 -classpath /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../conf:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../dist/lib/grouper.jar:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/grouper/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/custom/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/jdbcSamples/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/ant/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../lib/test/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../dist/lib/test/:/opt/grouper/2.3.0/grouper.apiBinary-2.3.0/bin//../src/resources: edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper -loader
root 391 0.0 0.1 47432 3352 ? R+ 01:08 0:00 ps auxww
bash-4.2#

@ghost
Copy link
Author

ghost commented Nov 22, 2016

bash-4.2# ps -fea
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:02 ? 00:00:00 /bin/bash /opt/bin/start.sh
root 62 0 0 01:02 ? 00:00:00 /bin/bash
root 181 1 6 01:04 ? 00:00:17 /usr/java/latest/bin/java -Djava.util.logging.config.file=/opt/group
root 183 1 0 01:04 ? 00:00:00 /bin/bash /usr/local/bin/run.sh
root 184 183 0 01:04 ? 00:00:00 sleep 1800
root 189 1 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 221 1 0 01:04 ? 00:00:00 /usr/sbin/shibd
apache 226 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 227 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 228 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 229 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
apache 230 189 0 01:04 ? 00:00:00 httpd -DFOREGROUND
root 362 62 0 01:08 ? 00:00:00 /bin/bash
root 363 362 20 01:08 ? 00:00:09 /usr/java/latest/bin/java -Xms64m -Xmx750m -Dgrouper.home=/opt/group
root 411 62 0 01:08 ? 00:00:00 ps -fea
bash-4.2#

@chubing chubing closed this as completed Apr 4, 2018
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant