<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The fork function failed. Too many processes already exist in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356427#M193376</link>
    <description>Hi Kent,&lt;BR /&gt;&lt;BR /&gt;unfortunately i am not able to start something like ps -ef on my last available shell on the server.&lt;BR /&gt;&lt;BR /&gt;As mentioned i know about this exec command, but if it fails i will lose my last shell without any effect.&lt;BR /&gt;&lt;BR /&gt;It seems that all i can do is to try to do a clean reboot with my last shell. What would you suggest:&lt;BR /&gt;&lt;BR /&gt;exec shutdown -r -y 0  OR&lt;BR /&gt;exec reboot&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
    <pubDate>Fri, 13 Aug 2004 04:50:20 GMT</pubDate>
    <dc:creator>Stefan Schulz</dc:creator>
    <dc:date>2004-08-13T04:50:20Z</dc:date>
    <item>
      <title>The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356424#M193373</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i have a server which is displaying this message whenever i try to issue a command. This server is a D-class running HP-UX 10.20. &lt;BR /&gt;&lt;BR /&gt;I know about the kernel parameters to tune. Also know that i have to look for defunct processes. The problem is i can't look for any processes because the only commant i could issue successfully was "pwd".&lt;BR /&gt;&lt;BR /&gt;I need to kill some processes so that i'm able to examine the situation. What can i do?&lt;BR /&gt;&lt;BR /&gt;i tried to free the process tabel by using "lpshut" and "/sbin/init.d/samba stop". But both commands died with the message "The fork function failed. Too many processes already exist".&lt;BR /&gt;&lt;BR /&gt;I know that i could try to use exec command. But this will kill my last existing shell on this server. I don't want to risk to be shut out of this server still no space in the process table.&lt;BR /&gt;&lt;BR /&gt;Any hints? Ist there anything i can stop without getting this error message?&lt;BR /&gt;&lt;BR /&gt;Any help is really appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 13 Aug 2004 04:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356424#M193373</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-08-13T04:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356425#M193374</link>
      <description>Stefan --&lt;BR /&gt;&lt;BR /&gt;Do you have a shell logged in as root ?&lt;BR /&gt;&lt;BR /&gt;If so, try to run a ps command and get some process IDs.&lt;BR /&gt;&lt;BR /&gt;Then obviously trying to kill some of those would be good.&lt;BR /&gt;&lt;BR /&gt;Do you know of any PCs where people may have defunct sessions logged in ?  Ask those people to kill the connections on the PC side (kill the Ap or the telent window or whatever).&lt;BR /&gt;&lt;BR /&gt;The other thing you may have to consider is using your last good shell to do a shutdown or reboot.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2004 04:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356425#M193374</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-08-13T04:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356426#M193375</link>
      <description>Hi,&lt;BR /&gt;go to the console, as a first step.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;THen try using the TSM, so that, in case, you have always a terminal.&lt;BR /&gt;&lt;BR /&gt;Thing you can try:&lt;BR /&gt;&lt;BR /&gt;shutting down non-vital services, like mwa, opc, cron , sendmail, and so on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;YOu can issue the pwd because it's a built-in command, in many sheels.&lt;BR /&gt;&lt;BR /&gt;CAn you ask some user to log-out, to free resources ?&lt;BR /&gt;&lt;BR /&gt;If there are applications connected, are you able to disconnect some of them ?&lt;BR /&gt;&lt;BR /&gt;A demy-disruptive test could be to unplug ethernet cables, to let some process die.&lt;BR /&gt;&lt;BR /&gt;tcp connections will continue, maybe, after that.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Massimo</description>
      <pubDate>Fri, 13 Aug 2004 04:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356426#M193375</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2004-08-13T04:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356427#M193376</link>
      <description>Hi Kent,&lt;BR /&gt;&lt;BR /&gt;unfortunately i am not able to start something like ps -ef on my last available shell on the server.&lt;BR /&gt;&lt;BR /&gt;As mentioned i know about this exec command, but if it fails i will lose my last shell without any effect.&lt;BR /&gt;&lt;BR /&gt;It seems that all i can do is to try to do a clean reboot with my last shell. What would you suggest:&lt;BR /&gt;&lt;BR /&gt;exec shutdown -r -y 0  OR&lt;BR /&gt;exec reboot&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 13 Aug 2004 04:50:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356427#M193376</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-08-13T04:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356428#M193377</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;You wont be able to run anything that requires a new process to be forked. Unfortunately, this includes the ps command.&lt;BR /&gt;&lt;BR /&gt;The first thing I'd try is to get users to log out.&lt;BR /&gt;&lt;BR /&gt;If that doesn't work you'll have to resort to killing arbitrary process numbers, 'kill' will work because it's built-in to the shell.&lt;BR /&gt;&lt;BR /&gt;Hopefully, once you've killed one process you should be able to run 'ps' to find out what's going on.&lt;BR /&gt;&lt;BR /&gt;It is possible though that you have a 'rogue' process that is continuing to attempt to fork more and if you can't identify it you'll have no option but to reboot.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;John</description>
      <pubDate>Fri, 13 Aug 2004 04:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356428#M193377</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2004-08-13T04:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356429#M193378</link>
      <description>There's no point in running 'shutdown' because it will attempt to run many processes.&lt;BR /&gt;&lt;BR /&gt;'exec reboot' should work.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 13 Aug 2004 04:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356429#M193378</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2004-08-13T04:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356430#M193379</link>
      <description>Hi Massimo,&lt;BR /&gt;&lt;BR /&gt;the last shell i have is on the console, allthough im actually have CDE running. Im afraid if i kill CDE i will not be able to use the normal terminal login. &lt;BR /&gt;&lt;BR /&gt;I don't know what is eating up all my resources on this server, so this could still be an ongouing process. If i free some resources by killing CDE this resources might be eaten up immediately.&lt;BR /&gt;&lt;BR /&gt;BTW: i know that there is a key combination that will kill CDE but i can't remember at the moment.&lt;BR /&gt;&lt;BR /&gt;This server is a file- (nfs and cifs) and printserver. There are no other applications running. Only 20 of normally 70 are active at the moment.&lt;BR /&gt;&lt;BR /&gt;So you say i could shutdown the remaining 20 clients to free up some resources? I will try this befor trying to shutdown.&lt;BR /&gt;&lt;BR /&gt;Tahnks</description>
      <pubDate>Fri, 13 Aug 2004 04:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356430#M193379</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-08-13T04:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356431#M193380</link>
      <description>I hope your kenrel parameters process id allocations and others are very less. You have to check and recompile your kernel to support more number process ids.&lt;BR /&gt;&lt;BR /&gt;If you want to check the performace try to boot on single user more and check there. &lt;BR /&gt;&lt;BR /&gt;If you reboot your systems all ZOMBIE process which occupied process table will be also killed.&lt;BR /&gt;&lt;BR /&gt;Same discussion but for 11.00 avaiable over,&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=107824" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=107824&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2004 05:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356431#M193380</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-13T05:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356432#M193381</link>
      <description>Hi,&lt;BR /&gt;in your situation i will advise users in any case, just because they may end up working , and not being capable of saving the files changed.&lt;BR /&gt;&lt;BR /&gt;Every smb user will fork a connection, and a process, if I remember well.&lt;BR /&gt;&lt;BR /&gt;Dangerous situation...&lt;BR /&gt;&lt;BR /&gt;If you are going to shutdown, consider a TOC, to dump the memory content and have it analyzed by HP, opening a call.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;REgards,&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2004 05:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356432#M193381</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2004-08-13T05:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356433#M193382</link>
      <description>Stefan,&lt;BR /&gt; &lt;BR /&gt;since you can't fork() I believe using exec is the only way to go. So you have only one shot. If that fails you could still TOC the system to get the dump analysed later.&lt;BR /&gt; &lt;BR /&gt;You already tried to halt Samba... You could ry this instead:&lt;BR /&gt; &lt;BR /&gt;# exec fuser -k /opt/samba/bin/smbd /opt/samba/bin/nmb&lt;BR /&gt; &lt;BR /&gt;This should free up enough slots in the proc table. Another candidate could be:&lt;BR /&gt; &lt;BR /&gt;# exec fuser -k /usr/sbin/nfsd&lt;BR /&gt; &lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2004 06:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356433#M193382</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-08-13T06:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: The fork function failed. Too many processes already exist</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356434#M193383</link>
      <description>Thanks to all your help. Because of a limited timewindow and the need get the server back in a stable status i had to use my last shell to issue an "exec reboot"&lt;BR /&gt;&lt;BR /&gt;This worked and the server is up and running again. &lt;BR /&gt;&lt;BR /&gt;I also tried to disconnect the clients to free up some resources, but this didn't work.&lt;BR /&gt;&lt;BR /&gt;Hopefully there are some traces left so that i can figure out what happend.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help. I will assign points right after this post.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 13 Aug 2004 06:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-fork-function-failed-too-many-processes-already-exist/m-p/3356434#M193383</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-08-13T06:19:44Z</dc:date>
    </item>
  </channel>
</rss>

