Hello.
I'm using Apache 2.2.31 on Linux Server.
I've faced an issue that Memory Utilization is over 80% on Linux Server.
When I checked /var/log/messages on Linux Server, I found out that httpd
processes were too many created on Linux server.
Jan 6 18:39:00 <server name> kernel: [621588.393289] Out of memory: Kill
process 4577 (httpd) score 16 or sacrifice child
Jan 6 18:39:00 <server name> kernel: [621588.402442] Killed process 4577
(httpd) total-vm:709776kB, anon-rss:124196kB, file-rss:0kB
When I checked Apache error logs, I found out below errors from Apache
error logs at the same timeframes.
[Sat Jan 06 18:29:17 2018] [error] [client IP] PHP Warning: ocilogon():
OCIEnvNlsCreate() failed. There is something wrong with your system -
please check that LD_LIBRARY_PATH includes the directory with Oracle
Instant Client libraries in <PHP File Path> on line 42, referer: <Site URL>
[Sat Jan 06 18:29:17 2018] [error] [client IP] PHP Warning: ocilogon():
Error while trying to retrieve text for error ORA-01804\n in <PHP File
Path> on line 42, referer: <Site URL>
[Sat Jan 06 18:29:17 2018] [error] [client IP] PHP Warning: ocilogon():
OCIEnvNlsCreate() failed. There is something wrong with your system -
please check that LD_LIBRARY_PATH includes the directory with Oracle
Instant Client libraries in <PHP File Path> on line 42, referer: <Site URL>
[Sat Jan 06 18:29:17 2018] [error] [client IP] PHP Warning: ocilogon():
Error while trying to retrieve text for error ORA-01804\n in <PHP File
Path> on line 42, referer: <Site URL>
[Sat Jan 06 18:29:17 2018] [error] [client IP] PHP Warning: ociparse()
expects parameter 1 to be resource, boolean given in <PHP File Path> on
line 103, referer: <Site URL>
Are these errors related to be created too many httpd processes on Linux
Server?
Can please give me any advice for this?
Here is Apache information.
Server version: Apache/2.2.31 (Unix)
Server built: Jul 19 2016 00:11:31
Server's Module Magic Number: 20051115:40
Server loaded: APR 1.5.1, APR-Util 1.4.1
Compiled using: APR 1.5.1, APR-Util 1.4.1
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Thank you in advance.
Thanks,
Junyoung