Ming
New Pleskian
Hi,
i am runing a virtual machine with "Plesk Obsidian Version 18.0.41" on Ubuntu 20.04.4 LTS.
I have passenger installed to run OpenProject.
Somehow the performance is really bad and i get errors.
In the log file i can see some resource errors (/var/log/apache2/error.log)
In the error html from passenger i got this message:
boost::thread_resource_error: Resource temporarily unavailable
So i check the resources.
The command "ulimit -a" gives me
After several researches i found this article https://support.plesk.com/hc/en-us/...-on-a-Plesk-server-Unable-to-fork-new-process
so i have change my mpm_event.conf
Here, the strange things are that i have increase the number for MaxRequestWorkers from 150 to 256 instead of decreasing as mentioned in the article. Also the parameter ServerLimit was not there and i add it to the config. So maybe not my root cause.... ;-(
There was also in that directory a mpm_worker.conf which have similar parameters, which i haven't touch.
Can somebody help me out or have an idea/tip?
Thanks in advance
Best regards
Ming
i am runing a virtual machine with "Plesk Obsidian Version 18.0.41" on Ubuntu 20.04.4 LTS.
I have passenger installed to run OpenProject.
Somehow the performance is really bad and i get errors.
In the log file i can see some resource errors (/var/log/apache2/error.log)
[ N 2022-03-08 00:00:43.9974 344600/T1 age/Wat/WatchdogMain.cpp:1373 ]: Starting Passenger watchdog...
[ N 2022-03-08 00:00:44.0636 344603/T1 age/Cor/CoreMain.cpp:1340 ]: Starting Passenger core...
[ N 2022-03-08 00:00:44.0638 344603/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode.
[ N 2022-03-08 00:00:44.0980 344603/T1 age/Cor/CoreMain.cpp:1015 ]: Passenger core online, PID 344603
[Tue Mar 08 00:00:44.161230 2022] [ssl:warn] [pid 166471:tid 140525254335552] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 08 00:00:44.161808 2022] [mpm_event:notice] [pid 166471:tid 140525254335552] AH00489: Apache/2.4.41 (Ubuntu) mod_fcgid/2.3.9 Phusion_Passenger/6.0.12 OpenSSL/1.1.1f configured -- resuming normal operations
[Tue Mar 08 00:00:44.161833 2022] [core:notice] [pid 166471:tid 140525254335552] AH00094: Command line: '/usr/sbin/apache2'
[ N 2022-03-08 00:00:50.0828 344603/T7 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
[Tue Mar 08 03:56:52.557626 2022] [cgi:error] [pid 344629:tid 140525046802176] [client x.x.x.x:y] AH02811: script not found or unable to stat: /var/www/vhosts/default/cgi-binindex2.asp, referer: http://x.x.x.x:
80/cgi-bin/index2.asp
[Tue Mar 08 06:13:21.410960 2022] [core:error] [pid 344629:tid 140525080372992] [client x.x.x.x:y] AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/host
s HTTP/1.1
[Tue Mar 08 10:53:32.314469 2022] [core:error] [pid 344629:tid 140525155907328] [client x.x.x.xy:y] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
App 370966 output: [passenger_native_support.so] not compiling because PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0
App 370966 output: [passenger_native_support.so] not downloading because PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0
App 370966 output: [passenger_native_support.so] will not be used (can't compile or download)
App 370966 output: --> Passenger will still operate normally.
App 372114 output: [passenger_native_support.so] not compiling because PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0
App 372114 output: [passenger_native_support.so] not downloading because PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0
App 372114 output: [passenger_native_support.so] will not be used (can't compile or download)
App 372114 output: --> Passenger will still operate normally.
terminate called after throwing an instance of 'Passenger::SystemException'
what(): Cannot fork() a new process: Resource temporarily unavailable (errno=11)
ERROR: cannot fork a process for executing 'tee'
[ pid=344603, timestamp=1646761144 ] Process aborted! signo=SIGABRT(6), reason=SI_TKILL, signal sent by PID 344603 with UID 0, si_addr=0x5421b, randomSeed=1646694044
[ pid=344603 ] Crash log files will be dumped to /var/tmp/passenger-crash-log.1646761144.CRnqi5 <--- ******* LOOK HERE FOR DETAILS!!! *******
[ pid=344603 ] Could not fork a child process for dumping diagnostics: fork() failed with errno=11
[ W 2022-03-08 18:39:04.9338 344600/T4 age/Wat/AgentWatcher.cpp:94 ]: Passenger core (pid=344603) crashed with signal SIGABRT, restarting it...
[ N 2022-03-08 18:39:05.9515 372279/T1 age/Cor/CoreMain.cpp:1340 ]: Starting Passenger core...
[ N 2022-03-08 18:39:05.9519 372279/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode.
[ N 2022-03-08 18:39:06.0103 372279/T1 age/Cor/CoreMain.cpp:1015 ]: Passenger core online, PID 372279
App 372338 output: [passenger_native_support.so] not compiling because PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0
App 372338 output: [passenger_native_support.so] not downloading because PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0
App 372338 output: [passenger_native_support.so] will not be used (can't compile or download)
App 372338 output: --> Passenger will still operate normally.
[ N 2022-03-08 18:39:08.1801 372279/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
[ E 2022-03-08 18:39:35.1610 372279/Tn age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /opt/openproject: An internal error occurred while spawning an application process: boost::thread_resource_
error: Resource temporarily unavailable
Error ID: d59f2d1e
Error details saved to: /tmp/passenger-error-FuTlIc.html
[ E 2022-03-08 18:39:35.1791 372279/Tf age/Cor/Con/CheckoutSession.cpp:281 ]: [Client 4-1] Cannot checkout session because a spawning error occurred. The identifier of the error is d59f2d1e. Please see earlier logs for detai
ls about the error.
[ E 2022-03-08 18:39:35.1792 372279/T9 age/Cor/Con/CheckoutSession.cpp:281 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is d59f2d1e. Please see earlier logs for detai
ls about the error.
In the error html from passenger i got this message:
boost::thread_resource_error: Resource temporarily unavailable
So i check the resources.
The command "ulimit -a" gives me
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1545096
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 62987
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
After several researches i found this article https://support.plesk.com/hc/en-us/...-on-a-Plesk-server-Unable-to-fork-new-process
so i have change my mpm_event.conf
more mpm_event.conf
# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestWorkers: maximum number of worker threads
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 256
ServerLimit 256
MaxConnectionsPerChild 0
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Here, the strange things are that i have increase the number for MaxRequestWorkers from 150 to 256 instead of decreasing as mentioned in the article. Also the parameter ServerLimit was not there and i add it to the config. So maybe not my root cause.... ;-(
There was also in that directory a mpm_worker.conf which have similar parameters, which i haven't touch.
Can somebody help me out or have an idea/tip?
Thanks in advance
Best regards
Ming