[SERVER-12253] Parent process is not closing after fork Created: 05/Jan/14 Updated: 10/Dec/14 Resolved: 19/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.4.8 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pawe? Smoli?ski | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Slackware64 current |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
I'm using following small shell script to launch MongoDB:
When I'll launch this, MongoDB process is starting but main process is not closing, i.e. I've following in my console:
When checking processes list, I see 3 instances of MongoDB running:
In log file I've only this:
When I'll hit Ctrl+C in console, parent process is closing (PID=10042 from the list above) and rest of 2 are still running (PID: 10043, 10044) and I can use MongoDB.
And now when I'll start MongoDB server again, the same happens |
| Comments |
| Comment by Joseph Lietz [ 16/Apr/14 ] |
|
Follow-up to previous comment: it turns out that I might just be impatient; the parent process does exit on its own after, for me, about 40 seconds. |
| Comment by Joseph Lietz [ 16/Apr/14 ] |
|
I'm experiencing this issue as well with 2.4.9. Some clues:
|
| Comment by Pawe? Smoli?ski [ 18/Mar/14 ] |
|
Hi, – |
| Comment by Stennie Steneker (Inactive) [ 18/Mar/14 ] |
|
Hi Pawel, Apologies on the delay in follow-up .. are you still experiencing this issue or were you able to find a solution? Regards, |
| Comment by Pawe? Smoli?ski [ 11/Jan/14 ] |
|
I've launched MongoDB with GDB and after it launched, I've sent SIGSEGV signal to parent process. In result GDB printed backtrace for this process, which should help with identification of the place where program stopped
|
| Comment by Pawe? Smoli?ski [ 11/Jan/14 ] |
|
... and if it'll help, content of some files from /proc/<PARENT PROCESS PID>/ directory
File maps:
File limits:
|
| Comment by Pawe? Smoli?ski [ 11/Jan/14 ] |
|
Shell environment variables and limits follow
|
| Comment by Eliot Horowitz (Inactive) [ 08/Jan/14 ] |
|
Can you send all shell environment setting and limits? |