simple script that reproduces the issue in production.
When running on HHVM, the jobrunner service (configured to use fcgi I suppose) fails to spawn curl requests with the following errors:
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033896] []
Warning: fork failed - Cannot allocate memory in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 933
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033897] []
Notice: Undefined index: 1 in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 935
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033898] []
Notice: Undefined index: 2 in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 936
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033899] []
Notice: Undefined index: 0 in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 938
[Tue Aug 12 09:25:36 2014] [hphp] [12782:7f0b86813700:0:033900] []
Warning: Not a valid stream resource in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 938
2014-08-12T09:25:36+0000: Could not spawn process in loop 0: curl -XPOST -s -a 'http://127.0.0.1:9002/rpc/RunJobs.php?wiki=glkwiki&type=ChangeNotification&maxtime=60&maxmem=300M'
I tried various tweaks (like raising the memory limit both in the JR script and in hhvm) but nothing seemed to work around this.
This seems to be a general problem with hhvm as configured by us btw, I wrote a small script that just forks with proc_open a curl request for enwiki main page, and it spawns the same error (see attachment).
Version: unspecified
Severity: blocker
Attached: