APC :: Shows "timeout" And "out Of Memory" Errors With Php Scripts

Nov 9, 2009

We have installed APC 3.1.3p1 beta (and also 3.0.19 stable seperately, to test) and we are seeing a lot of "out of memory" and "timeout" errors. For example, a php scripts dies saying the available memory is 256Kbytes, and the script tries to allocate 256 Mbytes of memory.

Here are the APC settings:

[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 128
apc.max_file_size = 8M
apc.stat = 1

and PHP settings related to memory is

memory_limit = 1024M

We have tried included apc.php file to watch out the cache, but it doesn't show any kind of fragmantation or etc. related with system, instead it shows "timeout" and "out of memory" errors with php scripts.

We have thought that the error can be related to /dev/shm as you should increase apc.shm_size in order to obtain more memory, therefore we have mounted /dev/shm as 4Gbytes. The server has 8Gbytes of memory (using 64-bit CentOS).

Note that once we set apc.enabled = 0, the problems go away, so it's definitely something with APC.

View 1 Replies


ADVERTISEMENT

Ssh After Entering The Password Of Ssh It Shows Me The Errors.

May 14, 2007

Tere was a folder in /home/virtfs and I delete this folder and now when I try tologin to ssh after entering the password of ssh it shows me the below errors.

-bash: id: command not found
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: dircolors: command not found
-bash: tr: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: whoami: command not found
grep: /var/cpanel/users/: Permission denied
-bash: mesg: command not found
-bash: dircolors: command not found
sshadmin@XXX [~]# su -
Password:

and in service status in whm the memory used is 100% but the sites are working.

and root@XXX [/]# top
-bash: top: command not found
root@XXX [/]#

View 13 Replies View Related

The Timeout SpeciMod_sec: The Timeout Specified Has Expired [severity "EMERGENCY"]

Aug 6, 2007

at my logs, i can see this timeout error caused my mod_security at my rhes 4 server.


Code:
mod_security-message: Access denied with code 403. Error reading request body, error code 70007: The timeout specified has expired [severity "EMERGENCY"]

I didnt specify any mod sec rule about "timeout", what timeout is this about?

View 3 Replies View Related

Email Errors - 550 Callback Errors

Feb 13, 2007

I'm noticed I was getting bounced email errors from a company I was sending email through and I further investigated this by running a dnsreport on my domain.

Turns out that it fails at Acceptance of NULL <> sender, Acceptance of postmaster address, and Acceptance of abuse address. The domain that I ran a test on is using a new IP that I had recently added to my Direct Admin server. None of the other domains on my server are having issues like this.

Is is possible that I need to do something to enable these new IP addresses in exim? I mean, exim obviously responds to that IP address, but it seems to be having some issues with it.

View 5 Replies View Related

Cpanel VPS - Plenty Of Free Memory, But 'committed' Memory Exceeds VPS RAM

Jun 12, 2009

I have a VPS. And have had an issue both when it was 1Gig and now I recently downgraded it to 768m, because I am moving some sites to a dedicated.

However, the part I am having trouble grasping is that when I look at graphs from Munin, it will typically always show 200-400MB free memory (and free -m and top agrees with munin), but Munin shows 'committed' memory that is above the total Ram on the VPS and once the 'committed' ram exceeds the VPS limit, processes start failing.

So, why is 'committed' memory exceeding the RAM on my VPS, when Munin, free -m and top all show there is free memory available?

Code:
root@server [~]# free -m
total used free shared buffers cached
Mem: 768 449 318 0 0 0
-/+ buffers/cache: 449 318
Swap: 0 0 0
Here's a graph that munin produces that shows the 'committed' memory exceeding the total memory.
[url]

View 3 Replies View Related

Memory Usage :: Put More Content Into Memory?

Jul 16, 2009

I just got a new server Dual E5520 with 6GB RAM, SAS 15k rpm raid10. It's running well. However, the memory usage is just around 2.5GB, even when I have more traffic. Here is the kernel info

Quote:

# uname -a
Linux server2.[url]2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Any idea that we can put more content into memory?

View 11 Replies View Related

4 But Shows 3.6

Aug 18, 2007

i have four 4gb of ram, but for some reason, it's showing 3.6 something... is there anyway we can get centos 5 to show 4gb?

View 2 Replies View Related

Hostname Shows (none)

May 7, 2009

I have a server with RHEL 5 installed. The problem is that the server shows the output of the hostname command as (none). I checked the /etc/sysconfig/network file and it shows the correct hostname. I also tried to change the hostname in the /etc/sysconfig/network file and restart the server. But hostname command still shows (none).

View 4 Replies View Related

Top Comand, What Actually It Shows?

Dec 4, 2008

Can anyone explain what "Top" actually shows, may be a stupid question ;-)

top - 21:12:14 up 12:07, 1 user, load average: 1.15, 0.36, 0.17
Tasks: 58 total, 2 running, 56 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.3% us, 0.5% sy, 0.0% ni, 97.0% id, 23.7% wa, 0.0% hi, 0.0% si
Mem: 2097152k total, 197132k used, 1900020k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

How is load averages read (% of my allot used)?

View 4 Replies View Related

Shell_exec Shows Nobody

Mar 13, 2008

I am running into a few problems when it comes to using the above command. No it is not being blocked in the php.ini file. The issue has to do with permissions. On my old server everything worked fine until I moved over to this new server.

$who = shell_exec("whoami");
echo "$who"; 

When I run that commend on the old server I got that users username. Which, makes since as that means anything created via PHP would be owned by that user. In fact, every other host I know of was like that. But, on the new server when I run the commend it shows up as "nobody". How can I fix this so my commands will run properly for me and my users?

View 4 Replies View Related

Know Any Software That Shows R/W Speed

Mar 29, 2009

I like the functionality of iStat for mac as it shows just about everything needed. Is there any software that I can see the rw speeds of the HDD's? I was on google, but couldn't find anything useful for my exact purpose.

View 4 Replies View Related

Web Hosting Trade Shows

Mar 9, 2009

Can anyone direct me to a site that contains web hosting/web designer trade shows for the US? We came across Hostcon already and are trying to find more of the same.

View 1 Replies View Related

Squid - Shows Clients IP

Oct 7, 2007

Im currently running cent0S 5. I recently just installed Squid Version 2.6.STABLE6 for a client to enable him to use as proxy. However it seems that sites like whatismyip.com and ipchicken.com are resolving back to my clients IP address and not the servers.

There is only one IP on my server and I think the problem may deal with X-Headers? (correct me if I am wrong)

Is there any way to use the server IP address for when my customer is using the proxy server.

My squid.conf looks like the following:
Code:
Code:
http_port 8080
forwarded_for off
icp_port 0
cache_mem 64 MB
cache_dir ufs /var/spool/squid 100 16 128
maximum_object_size 4096 KB
cache_store_log none
cache_access_log /var/log/squid/access.log
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
visible_hostname proxyserver
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src xxx.xx.xxx.xxx
acl SSL_ports port 443 563 10000
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 901
acl purge method PURGE
acl CONNECT method CONNECT
acl LocalNet src xxx.xx.xxx.xx
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow LocalNet
http_access deny all
icp_access allow all
log_fqdn on
##### This side is to make the proxy tranparency
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
#httpd_accel_host virtual
#httpd_accel_port 80
######------------------------------
error_directory /usr/share/squid/errors/English
#httpd_accel_uses_host_header off
#anonymize_headers deny From Referer Server
forwarded_for on
http_port ServerIP:8080 transparent

# no forwarded quite useless for an anonymizer
forwarded_for off
# no client stat
client_db off

# Paranoid anonymize
header_access Allow allow all
header_access Authorization allow all
header_access Cache-Control allow all
header_access Content-Encoding allow all
header_access Content-Length allow all
header_access Content-Type allow all
header_access Date allow all
header_access Expires allow all
header_access Host allow all
header_access If-Modified-Since allow all
header_access Last-Modified allow all
header_access Location allow all
header_access Pragma allow all
header_access Accept allow all
header_access Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Content-Language allow all
header_access Mime-Version allow all
header_access Retry-After allow all
header_access Title allow all
header_access Connection allow all
header_access Proxy-Connection allow all
header_access All deny all
header_access Cookie allow all
header_access Set-Cookie allow all
header_replace User-Agent Anonymous Proxy at example.com

View 3 Replies View Related

Dns Report Shows Failure

Jun 5, 2007

My VPS is setup and now when I did a dnsreport for my site, it shows:

Number of nameservers
ERROR: You have 2 nameservers, but both are on the same IP! This is not a valid setup. You are required to have at least 2 nameservers, per RFC 1035 section 2.2.

Is this a big problem?

The report [url] also shows other failures. Are there any critical ones that I need to take care of? How do I do it?

View 11 Replies View Related

History Shows Time

Mar 7, 2007

I am working on a server, on that hostory shows in format like

Quote:

root@unix [/etc/profile.d]# history |more
1 Mar.04 01:35fdisk -l
2 Mar.04 01:35ping yahoo.com
3 Mar.04 01:35exit
4 Mar.04 18:21exit
5 Mar.04 18:04Smartctl -a dev/hda/
6 Mar.04 18:04Smartctl -a /dev/hda/
7 Mar.04 18:06Smartctl -a /dev/hda |grep Serial

That is history include time of command execution.

Quote:

root@unix [~]# set |grep HIST
HISTFILE=/root/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
HISTTIMEFORMAT='%h.%d %H:%M'
root@unix [~]#

I can't find anything regarding history on .bash_profile or .bashrc

Where this is set? How i enable loging command execution on CentOS?

View 2 Replies View Related

Whois Only Shows Registry Info

Dec 3, 2008

I got a new box, replaced it with my old one, and the whois program only shows registry portion, but not registrar portion.

I see when it expires and stuff, but not the registrant info you know.
never run into this before, can someone come with a solution?

It's standard CentOS.

View 2 Replies View Related

APF :: If I Do An Nmap, Mysql Shows Up As Open Still

Nov 14, 2008

I just upgraded to the latest version of APF. I am running CentOS with the 2.6 kernel.

I added my ports to allow, started it up, and it does not seem to be blocking anything.

I get no errors on startup though. If i do an nmap, mysql shows up as open still. I can even telnet to it.

root@me [~]# /usr/local/sbin/apf -r
apf(6367): {glob} flushing

View 6 Replies View Related

Current CPU Usage Shows Mysql 177 - Is This %

Oct 12, 2007

my server is jammed and takes minutes to load simple pages, can you please take a look ath the following image, its show under "CPU %" for mysql 177, does that mean mysql is using 177% of resources of cpu?

View 3 Replies View Related

Atom 330 Dual Core Shows As 4 Cores

May 16, 2009

I just got an Atom 330 and it shows that i have 4 Cores. Is it normal?

cat /proc/cpuinfo | grep Atom
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz 

View 10 Replies View Related

Phpinfo Shows Wrong MySQL Version

Mar 25, 2008

I have recently upgraded MySQL to 5.25

However, when I run phpinfo, I see the following:

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.21
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient

mysqli
MysqlI Support enabled
Client API library version 4.1.21
Client API header version 4.1.20
MYSQLI_SOCKET /var/lib/mysql/mysql.sock

View 4 Replies View Related

Site That Shows The Actual Uptime For A Host?

Jul 13, 2008

Is there a site that shows the actual uptime for a host?

View 14 Replies View Related

Website Won't Load And Shows An Error Page

Jun 2, 2007

I have a problem with one of our websites. For some reason, only that one website won't load and shows an error page. This domain is not propogating, nor has it had any changes to any DNS records lately, and it was working around five minutes ago.

View 14 Replies View Related

Imported Wordpress Blog But Test URL Shows 404

May 18, 2007

[url]shows all pages are 404 errors. Is that just a Wordpress issue and everything will work once the DNS has propagated with the new IPs?

How do we test a wordpress site if the testing URL does not allow us to see the pages and posts?

View 3 Replies View Related

Vps Timeout

Aug 14, 2008

I got my VPS a few days ago and want to get started.

I installed Webmin (with the rpm - centos 5), and it says it installed successfully and then I can login.

I typed in my domain name with the ':10000' but I get a network timeout in Firefox.

I know my DNS is right, because I have the domain name pointed to my IP address with an A record.

SSH is working fine, I can login using the domain name and not my IP address.

I tried installing Lighttpd, but still get the timeout. Replacing the domain name with the VPS IP address doesn't work either.

View 5 Replies View Related

SSH Timeout

Feb 5, 2008

Is there a way to increase the timeout for a SSH connection when idle? Mine (on my server) seems to time out after 15-20 mins of inactivity. I'd like to increase this to like 60 mins or indefinitely.

View 6 Replies View Related

CGI Timeout

May 15, 2007

When i try to login my forum after waiting alittle following error occured

Code:
CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process

View 5 Replies View Related

Google Shows Tha My Site Has Malicious Code And Blocked Me

Apr 5, 2009

for the first time in my sites life(10 year site) google blocked it. when you type my site google says that my site has malicious code in it.as we find it the problem in my site came from the company where i hosted it.we clear all the files for the malicious code and now its all ok.i want to ask if anyone knows for his experience how much days google will check my site again to see if all its ok.i send them before six hours via webmaster tools, a request for eaming agin my site,but i dont knwo how will do these. so i am asking anyone of you,who had same experience.any help will be appreciate.please help me with anything you think that might be useful for me to having my site back again in google correctly!

View 5 Replies View Related

Why Wndows 2008 Standard Shows Its IIS Front Page Only

Dec 13, 2008

Why Wndows 2008 standard shows its IIS front page only

I am using windows 2008 standard version 64 bits

I am using an external DNS service and using none of Windows roles

I disabled the firewall completely

When I run IIS i can access to its front page from another machine but when I run jboss the browser can't get access to my web site front page! They both use port 80

Does ISS has some sorts of hidden privileges in Micorosoft which is not surprising

I am about to revert back to Windows 2003 if I can't find a solution to this problem. Or do I have use a certain role for remote access?

View 0 Replies View Related

Domain Shows Default Green Cpanel Page

Mar 12, 2008

I don't know why but a domain is showing the green default cpanel page instead of its own homepage. The domain has been hosted on this box for a long time.

DNS is fine, ran udpateuserdomains without error. No dns changes have been made. IP it is set to pings fine. Tested via 3rd party proxy, shows green cpanel page still.

Shows proper IP in httpd.conf

View 2 Replies View Related

CPanel Shows Wrong Versions Of Apache And MySQL

Mar 5, 2008

I've a small reseller account with cPanel with 5 sites. After transfering to other host (full cPanel backup of old sites, restoring on new host) cPanel of 2 sites still displays the version number of the old host, the other 3 sites are correct.

CP1: correct - CP2: wrong

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved