-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env LD_PRELOAD not effect on Cluster Mode #4375
Comments
@Unitech This issue still here for a long time, could you please take a look at this? Thanks |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The issue still here today |
Facing the same issue. any suggestions? |
Cluster mode is tightly linked on how PM2 has been started. So: pm2 kill
LD_PRELOAD=xxxx pm2 ls
# Now if you start an app in cluster mode, LD_PRELOAD will be injected in that app
pm2 start app.js -i max |
@Unitech How to ensure pm2 used |
@lokoArt If set env |
Successful to add Add The cluster mode will working with |
Where to place |
@jordygroote I ran into the same problem. It's |
UpdateInstall latest jemalloc 5.2.1 on Ubuntu 18Refer: https://gist.github.com/diginfo/be7347e6e6c4f05375c51bca90f220e8 sudo apt-get -y install autoconf libxslt-dev xsltproc docbook-xsl
git clone https://github.com/jemalloc/jemalloc.git
cd jemalloc
autoconf
./configure
make dist
sudo make install You can found jemalloc at sudo su
vi /etc/enviroment
# Then add this line
LD_PRELOAD=/usr/local/lib/libjemalloc.so.2 Then export LD_PRELOAD=/usr/local/lib/libjemalloc.so.2 Then optional reboot |
UpdateI faced this problem again in a week, and it took me 2 days to solve it Somehow, the # make install version
sudo echo "/usr/local/lib/libjemalloc.so.2" >> /etc/ld.so.preload
# apt-get version
sudo echo "/usr/lib/x86_64-linux-gnu/libjemalloc.so" >> /etc/ld.so.preload Then restart all # If you are using pm2
pm2 kill
pm2 resurrect Then check the ps aux | grep node
cat /proc/<PID>/smaps | grep jemalloc |
@Cow258 Thanks mate. I owe you a debt. |
Thank you so much! |
#3684
https://github.com/Unitech/pm2/issues/2618
lovell/sharp#1803
What's going wrong?
Unable to load env
LD_PRELOAD
under Cluster ModeHow could we reproduce this issue?
Full detail here
lovell/sharp#1803
Supporting information
The text was updated successfully, but these errors were encountered: