Fatal error shared memory segment while starting service phd


in order to upgrade phabricator in production system, I create a develop machine where restore the production data and try to upgrade/downgrade phabricator versions ( to be ready for possible issue in production).
My machine is a Joyent instance (Solaris - SmartOS x86_64).

I installed current (old) production version :

phabricator c0d42a89430a655f48e30adc1dbc2085c4a904e6 (May 2 2016)
arcanist c58f1b9a2507488b2152473dd1f0bbc7e99c09c1 (Apr 29 2016)
phutil 0709cd5cfc2616c29104387de6dde3de1db7fa32 (May 2 2016)

, and without data phabricator starts without issue.

When I add backup data I got a memory shared fatal error launching /phabricator/phd service:

Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Invalid argument (22)

I google for a solution and I find how to increase the shared memory here but also setting the value to 270Mb (my issue says 134Mb) don’t change the situation.
To increase share memory I used this command :

projmod -s -K ‘project.max-shm-memory=(privileged,270585456,deny)’ system
projmod -s -K ‘project.max-shm-memory=(privileged,270585456,deny)’ user.root

If you need more information please tell me.



Maybe try increasing it to 4gb? Why is it so small? What is it configured for in production?

The machine is virtualized locally and I give to it 8Gb of memory but it takes only 1.2Gb…no idea why, I have to investigate…I will write if I found something new…
But I provided on Joyent a machine similar to the one in production and was able to install phabricator with old version, update data and upgrade phabricator.