Hello
I have created next scritpt to do the next: chekp if host is alive. When the host down, launch telnet other equip to do checks.
When execute the script the load average of the machines increase. For example:
Before launch script
After 10 min launch the script
After 3 hours the load average can be 17 or more.
What is the problem with the script? It's the | ? the sleps??
The script:
Thanks!!!!!
Finaly I change the script
This script doesn't up the load average, but the process kill with:
kernel: [2094147.207333] test_ping.sh[31552]: segfault at 7fffcc7f3f88 ip 48f62a sp 7fffcc7f3f70 error 6 in bash[400000+ba000]
It's possible the loop generate the error??
I continue investigating.........
I tried to change the loop (change the While for the command for) for(( ; ; ))do with the same result
ontinue investigating.........
test_ping.sh[15343]: segfault at 7fff76f16fc8 ip 48f62a sp 7fff76f16fb0 error 6 in bash[400000+ba000]
Saludations
---------- Post updated at 03:56 AM ---------- Previous update was at 02:17 AM ----------
Hi!!
Finally I find the solution.
The problem is :
ping -c 1
This ping and the bucle provocate overload of the system, Changing to
ping -c 3 (or put a delay)
the problem has been solved
Thanks!!!!
Hi can anyone help me with a script to load output of the .ksh file into an Oracle database. I have attached sample output of the information that i need to load to the database (2 Replies)
Hi! I've make a script that gets a list of 200 Ip's and calls another script once per ip in a infinite loop with a pause of 10 seconds. So It calls over 200 times every 10 seconds the second script (that makes a fping). But this cause a load average of 30. I've been reading about this and I... (4 Replies)
Hello AlL,..
I want from experts to help me as my load average is increased and i dont know where is the problem !!
this is my top result :
root@a4s # top
top - 11:30:38 up 40 min, 1 user, load average: 3.06, 2.49, 4.66
Mem: 8168788k total, 2889596k used, 5279192k free, 47792k... (3 Replies)
Hi,
i have installed solaris 10 on t-5120 sparc enterprise.
I am little surprised to see load average of 2 or around on this OS.
when checked with ps command following process is using highest CPU. looks like it is running for long time and does not want to stop, but I do not know... (5 Replies)
Hello, Here is the output of top command. My understanding here is,
the load average 0.03 in last 1 min, 0.02 is in last 5 min, 0.00 is in last 15 min.
By seeing this load average, When can we say that, the system load averge is too high?
When can we say that, load average is medium/low??... (8 Replies)
Hi,
I'm new to shell scripting. I need to make a script to add on to my cronjobs.
The script must get the value of load average from my server and if its greater than 10 it should stop my apache service. I cant find a way to get the value of load average in integer type to do the check. Any... (4 Replies)
Hello all, I have a question about load averages.
I've read the man pages for the uptime and w command for two or three different flavors of Unix (Red Hat, Tru64, Solaris). All of them agree that in the output of the 2 aforementioned commands, you are given the load average for the box, but... (3 Replies)
we have an unix system which has
load average normally about 20.
but while i am running a particular unix batch which performs heavy
operations on filesystem and database average load
reduces to 15.
how can we explain this situation?
while running that batch idle cpu time is about %60-65... (0 Replies)