Hi,everybody
Please someone suggest me for test max process on system my system is Solaris 10/9 installed on HP DL380G6 . My point of project is test max process ,max user untill systemdown .however i have batch script telnet from pc to host about 500 window per pc ( i have pc 9 unit 500*9=4500 window so not enough for this test). I want script for fork process infinity but i don't know process for fork with while condition Ok. Thank everybody Please Help me.
Best regard
This isn't the kind of tuning you'll want to test but anyway here is an example of a script that will test this limit and more than likely crash your OS:
#!/bin/ksh
count=$(sysdef -i | grep maxup | nawk '{print $1;exit;}')
print "Launch $count processes (WARNING: this WILL brick your system ...) y/[n] : ? "
read yesNo
if [ "$yesNo" = "y" ]
then
echo starting ...
while [ $count -gt 0 ]
do
/usr/bin/sleep $count &
count=$((count-1))
printf "%06d\r " $count
done
sleep 30
ps -ef|wc -l
else
echo "Cancelled"
fi
I didn't tested it.
thank you ! don't worry about this. this test is proof for theory and i don't use maxprocess from sysdef but this test need real max process from usable