Sponsored Content
Full Discussion: Kill -9 -1 combination
Top Forums UNIX for Beginners Questions & Answers Kill -9 -1 combination Post 303040982 by alexcol on Monday 11th of November 2019 03:12:59 PM
Old 11-11-2019
Good afternnon:

Thank you very much all of you for your help

This is 1 of 4th web application node using apache as a webserver, and as a Production env it receives all the htpp traffic from internet throuh a load balancer called (F5 -A10) and by a java process called germ.jar open sockets to port 89xx (load balancer), so below is the information:

Code:
$ /bin/bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

Code:
$ uname -a
Linux serverbam04.nh 4.1.12-124.15.2.el7uek.x86_64 #2 SMP Tue May 22 11:52:31 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux

Code:
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)

webserver apache

Code:
EE-plus-7.0.2/lib/openejb-javaagent.jar -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /usr/share/tomEE-plus-7.0.2/bin/bootstrap.jar:/usr/share/tomEE-plus-7.0.2/bin/tomcat-juli.jar -Dcatalina.base=/usr/share/tomEE-plus-7.0.2 -Dcatalina.home=/usr/share/tomEE-plus-7.0.2 -Djava.io.tmpdir=/usr/share/tomEE-plus-7.0.2/temp org.apache.catalina.startup.Bootstrap start

The reason why i asked whad does kill -9 -1 does is because our web application provider suggested every time we shut down the app, i will have to run this command to make sure all session are cleaned, but i didnt know how powerful or dangerous this command will be

some time ago the user med has 1615 processes because a shell that runs every 5 minutes got stuck and blocked the node, and we contact aour System Administrator but these processes could never get killed and this node had to be started

Code:
med+ 32737     1  0 14:49 ?        00:00:00 /bin/bash /app/perm/backend/check_port_process/CHECK_PORT_PROCESS_MAIN.sh
 32742     1  0 13:15 ?        00:00:00 /bin/bash /app/perm/backend/check_port_process/CHECK_PORT_PROCESS_MAIN.sh
$ ps -fu med|wc -l
1615

kill command
Code:
ps -fu med | grep -v grep | awk '{print $2}' | xargs kill -9

Thanks again for your help
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Partition combination

Hi all I've got MacOSX server which is a UNIX based system. I've got 2 partiontion an I like to make just one partition on he disk without loosing any data on part1. Is there a way to do that kind of thing in UNIX or do I have to format everything and put up the system again? Thanx for reading... (3 Replies)
Discussion started by: gardarm
3 Replies

2. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

3. Programming

kill(0,-9) don't kill the process

Hi all i have simple c program , when i wish to kill the app im using kill(0,-9) , but it seams this command don't do any thing and the program. just ignore it . what im doing wrong here ? im using HP-UX ia64 Thanks (9 Replies)
Discussion started by: umen
9 Replies

4. UNIX for Dummies Questions & Answers

combination of two commands

I want to show a output like this Lee Ballancore PID TTY TIME CMD 31799 pts/3 00:00:00 vim 31866 pts/3 00:00:00 vim 2495 pts/7 00:00:00 vim 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps Alistairr Rutherford PID TTY TIME CMD 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps ... (3 Replies)
Discussion started by: nehaquick
3 Replies

5. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

6. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

7. Shell Programming and Scripting

Combination of numbers

Hello Group, I have a file of data that contain 1 2 3 4 5 I request you help with a shell script for generate all posible combination of these numbers with the following output: Example: 1 + 2 + 3 + 4 + 5 = 2 + 2 + 3 + 4 + 5 = 3 + 2 + 3 + 4 + 5 = Thanks in advance. Carlos (7 Replies)
Discussion started by: csierra
7 Replies

8. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

9. Programming

6 digits combination

Is there any program that can create 6 digit numbers with: (DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10 Any perl or C also can. Anyone can help me? Thank you (6 Replies)
Discussion started by: Tzeronone
6 Replies

10. Shell Programming and Scripting

Combination of 6 nos

Hi folks, I have a numbers from 1-100 and from these nos I have 30 numbers.. From this 30 nos, I have to generate a combination of 6 nos... this 30 numbers will range from 1-100... ( FYI: This is not a lottery game - just kidding) ... I am trying out this in a shell script.. any ideas ? (3 Replies)
Discussion started by: gsiva
3 Replies
NUXWDOG(1)							     PKI Tools								NUXWDOG(1)

NAME
nuxwdog - Provides a simple watchdog process that can be used to start, stop, monitor, or reconfigure a server process. SYNOPSIS
nuxwdog -f configuration_file [-i] DESCRIPTION
nuxwdog is a watchdog daemon that builds on the uxwdog service that is part of the Netscape Enterprise Server (NES). nuxwdog can start, stop, monitor, and reconfigure server programs, depending on the parameters passed to it in its configuration file. nuxwdog opens a Unix domain socket to accept requests from any server process it is managing. Optionally, nuxwdog can be configured to communicate only with clients that are descendants of the nuxwdog process, limiting an avenue of potential access to any servers managed by the watchdog. Some servers require a high-level of security to protect their data or operations, which means (for example) that they cannot store plaintext passwords in a password file to allow the server to be started automatically. nuxwdog can be configured to prompt for server passwords when a server first starts and then caches those passwords so that nuxwdog can restart the server without intervention if the server crashes. To make it easy for clients to communicate with nuxwdog, a C/C++ shared library is provided with the nuxwdog source code (libnuxwdog.so). Additionally, nuxwdog provides JNI interfaces and Perl bindings to the libnuxwdog.so library, so that calls can be made from Java and Perl programs. For more information on this library and the client interfaces, see https://fedorahosted.org/nuxwdog/wiki/HOWTO. nuxwdog is used by Dogtag PKI to monitor and manage the subsystem server processes for Java, Tomcat, and Apache servers. OPTIONS
-f configuration_file Passes the configuration file for the service which runs the subsystem. With Dogtag PKI. For the CA, OCSP, TKS, and DRM, this is for the Java process. For the TPS, this is for the Apache process. -i Runs the nuxwdog process in interactive mode and keeps nuxwdog open in the foreground instead of running it as a daemon in the background. CONFIGURATION FILE PARAMETERS AND EXAMPLES
ExeFile Gives the full path to the executable to be started. ExeArgs Passes any arguments to the executable. The first argument must be the full path to the executable (the same as the value in ExeFile). TmpDir Gives the full path to the executable to be started. ChildSecurity Sets whether the child server process should only allow requests from a parent (where nuxwdog is the parent). nuxwdog checks the process ID for any client which sends a request to the Unix domain socket and drops any message where the client is not a descendant of the nuxwdog process. To allow any request, set this to 0; to allow only parent or ancestor requests, sets this to 1. ExeOut Gives the file to write stdout for the server to be started. ExeErr Gives the file to write stderr for the server to be started. ExeBackground Sets whether to run the server and the nuxwdog processes in the background in daemon mode after the watchdog is initialized. Setting this to 1 enables daemon mode, while 0 keeps this in the foreground. PidFile Gives the PID file to use to store the nuxwdog PID. ChildPidFile Gives the PID file to use to store the PID of the server process managed by nuxwdog. ExeContext Sets the SELinux context in which to start the server process. nuxwdog can be used to manage many types of server processes. For Dogtag PKI, it manages Java, Tomcat, and Apache servers. For the Dogtag PKI Certificate Authority, a Java-based subsystem with a Tomcat web service, the configuration file identifies the appropriate JRE and class paths, along with setting the output, error, and PID files. (The ExeArgs argument should be all on one line.) ExeFile /usr/lib/jvm/jre/bin/java ExeArgs /usr/lib/jvm/jre/bin/java -Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath :/usr/lib/jvm/jre/lib/rt.jar :/usr/share/java/commons-collections.jar :/usr/share/tomcat5/bin/bootstrap.jar :/usr/share/tomcat5/bin/commons-logging-api.jar :/usr/share/java/mx4j/mx4j-impl.jar :/usr/share/java/mx4j/mx4j-jmx.jar :/usr/share/tomcat5/common/lib/nuxwdog.jar -Dcatalina.base=/var/lib/pki-ca2 -Dcatalina.home=/usr/share/tomcat5 -Djava.io.tmpdir=/usr/share/tomcat5/temp org.apache.catalina.startup.Bootstrap start TmpDir /var/lib/pki-ca2/logs/pids ChildSecurity 1 ExeOut /var/lib/pki-ca2/logs/catalina.out ExeErr /var/lib/pki-ca2/logs/catalina.out ExeBackground 1 PidFile /var/lib/pki-ca2/logs/wd-pki-ca2.pid ChildPidFile /var/run/pki-ca2.pid For Dogtag PKI, the Token (smart card) Processing System uses an Apache-based server. This example also sets the SELinux context, pki_tps_t, used by the TPS subsystem processes. ExeFile /usr/sbin/httpd.worker ExeArgs /usr/sbin/httpd.worker -f /etc/pki-tps1/httpd.conf TmpDir /var/lib/pki-tps1/logs/pids PidFile /var/lib/pki-tps1/logs/wd-pki-tps1.pid ExeContext pki_tps_t ADDITIONAL RESOURCES
There is a more detailed how-to article, including information on available client calls for nuxwdog, at https://fedorahosted.org/nuxwdog/wiki/HOWTO. The nuxwdog server works in conjunction with the Dogtag PKI subsystems. The Dogtag PKI project wiki is at http://pki.fedoraproject.org/wiki/. For information specifically about nuxwdog, the nuxwdog project wiki is located at https://fedorahosted.org/nuxwdog/wiki/[1]. The nuxwdog relates directly to nuxwdog code changes and releases, rather than all PKI-related updates. Mailing lists: pki-devel@redhat.com and pki-users@redhat.com IRC: Freenode at #dogtag-pki AUTHORS
The PKI tools were written and maintained by developers with Netscape and now with Red Hat. Authors: Ade Lee <alee@redhat.com>, Deon Lackey <dlackey@redhat.com>. COPYRIGHT
(c) 2010, Red Hat, Inc. Licensed under the GNU Public License version 2. NOTES
1. https://fedorahosted.org/nuxwdog/wiki/ https://fedorahosted.org/nuxwdog/wiki nuxwdog 1 November 29, 2010 NUXWDOG(1)
All times are GMT -4. The time now is 07:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy