Could someone please help me with some information on how I can troubleshoot this issue?
[warn-phpd] mmap cache can't open /home/sitedir/)
It's happening on all the directories ie: sites on the server. Switching from phpsuexe back to running php dso fixes the issue, but how can I run phpsuexec and fix this problem? Any tips would be very much appreciated.
I've got a one month stable setup running a cpanel + apache 1.3.x and suddenly starting yesterday i get these errors from time to time in the log from various IPs:
(104) Connection reset by peer: client stopped connection before send mmap completed
(32) Broken pipe: client stopped connection before send mmap completed
send mmap timed out
Googling shows people guessing at everything from mysql errors to the visitor clicking a link on a partially showing page before it's completed.
Anyone with more clear insight? Mysql shows no apparent errors.
Site is a heavily loaded wordpress setup with mod_gzip the only major addition to apache. Also running a firewall for a week now. Errors did not show up until yesterday.
I have a Centos 5.2 box with Cpanel/WHM. A couple days ago it rebooted.
I checked /var/log/messages and I can see where it rebooted, but I can't find anything that indicates why.
I'm trying to figure out if this is a hardware issue or software issue/crash.
I do have Nagios istalled, and it seems it saved some data right before the server rebooted. Not sure if this is a simple coincidence.
Dec 4 11:53:35 miles nagios: Auto-save of retention data completed successfully. Dec 4 11:56:14 miles syslogd 1.4.1: restart. Dec 4 11:56:14 miles kernel: klogd 1.4.1, log source = /proc/kmsg started. Dec 4 11:56:14 miles kernel: Linux version 2.6.18-92.1.17.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Nov 4 14:17:52 EST 2008 Dec 4 11:56:14 miles kernel: BIOS-provided physical RAM map: Dec 4 11:56:14 miles kernel: BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
I'm having some problems with my new VPS server. The server is running under Linux with Plesk (sorry type error on the title, it's not CPanel but Plesk instead).
The server is working fine most of the time, however, once every one or two weeks, the server can be extremely slow or completely down. The only thing that I can do the solve the problem is to restart the server. Once the server is restarted, everything is back to normal. There's once, I couldn't even go to the control panel, the server restarted by itself after 45 minutes later.
I tried contacted the server administrator, they said they couldn't do any debugging for me since I have restarted the server. Their response is very slow, I couldn't wait for a few hours just to let them troubleshoot. And since this is unmanaged VPS, they seems to be reluctant to teach me on how to troubleshoot it. They just asked me whether I had done some troubleshooting whether it's a DDOS attack or just some optimization is required for the server. They are asking back the question to me! Due to some reasons, we can afford a downtime of more than half a day to switch the server, so meantime, I have to learn on troubleshooting the problem myself.
So, I will like to know if similar things happened, what should I do? Can I use Plesk to check? Or I need to login using SSH to check the server?
I don't resell, I am using the VPS for personal use to run a small vBulletin board (30-60 members on at a time), a Mambo site that is used to aggregate news (12,000 or so news items), and then a couple small personal static sites, and about 25 email addresses.
My VPS has the following versions listed in WHM:
WHM 11.11.0 cPanel 11.15.0-R17853 CENTOS Enterprise 4.5 i686 on virtuozzo - WHM X v3.1
It is currently setup with the default update settings that came when Zone.net set it up, which are:
Question 1: So, for the type of site I am running, is the stable tree the best? While it is a small vBulletin community, lack of down time is my main goal, so I need to balance getting updates fast enough to keep it secure, but not getting 'bleeding edge' bugs introduced. Which tree is the best balance?
Question 2: Should I be running automatic updats on cPanel/WHM or keep it manual and check here and other forums for important updates?
Question 3: I recently had a problem where Horde stopped working. Zone.net's support staff helped me, and suggested two things to attempt to fix it, and this "/scripts/fullhordereset" fixed it. So, since I am new to VPS's and more specifically, working with Linux, how to I learn/research things like this in the future. Should I be checking out forums/communities for each individual app (like Horde), or is there a better option?
Question 4: Unfortunately, I don't know what I don't know. Such as what tree to run, when to do cPanel updates, when to do Apache updates, how to make sure all my configs are right. Any suggestions on how to both make sure my WHM is configured the best way for my purposes, and more importantly, what is the best way of moving from WHM
I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).
I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.
I guess I have finally seen the adverse effects of raising the conntrack table max too high.
May 15 09:13:52 cp4 kernel: [6430723.486626] dst cache overflow May 15 09:13:52 cp4 kernel: [6430723.622616] dst cache overflow May 15 09:13:56 cp4 kernel: [6430727.562862] dst cache overflow May 15 09:13:56 cp4 kernel: [6430727.698868] dst cache overflow May 15 09:13:56 cp4 kernel: [6430727.844221] dst cache overflow May 15 09:13:56 cp4 kernel: [6430727.991276] dst cache overflow May 15 09:13:56 cp4 kernel: [6430728.131962] dst cache overflow
I got tons of these during an attack today. I have googled around for a lil while and not have been able to find any useful info on raising this cache level up. Would anyone here know how to do this?
I see no sysctl settings or anything of that nature for it.
I'm running shared hosting and would like to keep the amount kept in cache down so that there is always more memory free... how would i go about doing that?
I seem to have the opposite problem of what most people complain about... I'm using some custom-built PHP scripts, the output of which is not getting cached. I want the output cached, because it doesn't change often.
If it's relevant, I'm using ob_start() to serve up a GZIP-compressed page.
I start off with a header("Cache-Control: maxage=3600, must-revalidate"). Yes, it's first, and yes, it's showing up properly in the browser.
However, requesting the page again returns an HTTP 200, not the 304 I'm expecting. It's pulling down the whole page again. It's not changing in between requests, and I'm simply visiting the URL again, not hitting Refresh. (Although it really shouldn't matter.)
I made changes in httpd.conf to redirect website to another website; after 15min I removed redirect but until now when client request website they are redirecting. I'm sure I remove redirect.
we are locating in UAE, UAE has transparent proxy for all Internet connections so I think the problem in proxy cache, How i can confirm it? then can I avoid it ?
also when I put dot "." at the end of link site working without redirect otherwise it's not working.
I'm assuming a corporate proxy cache is what they have set up. I have a client and every time I send them changes to a temporary page I'm hosting for review they can't see it.
They can hit refresh over and over but never see the new updates unless I change the name of the folder its in.
This is very annoying and it only happens with them and one other corporate client i have. They check on multiple computers and it will never refresh and load the new changes. I think this is their network cache that their IT dept. set up.
How can I get around this? I tried an htaccess trick I looked up for expiring files but it didnt work.
These files are on a shared hosting of mine on an Apache server.
root@host# free total used free shared buffers cached Mem: 4016936 2598976 1417960 0 138424 1558652 -/+ buffers/cache: 901900 3115036 Swap: 5275640 0 5275640 Eventually, the cache reaches 2600000 and i would like to keep the cache smaller so that the free RAM is always steady around 500k for when a lot of traffic comes through.
We just upgraded our server with 8 brand new seagate cheetah 15k.5's, a battery backup unit, and a 256mb dimm for the raid controller. In the boot process, i noticed an error about caching or something.
After analyzing the dmesg log, i found the error: sda: asking for cache data failed sda: assuming drive cache: write through
It seems like the kernel can't get to the raid controllers cache, so it switches to the write through setting.
I've benchmarked the harddisks with the write through, and write back setting. The odd thing is that both settings deliver the same performance.
Normally, write back increases the performance with like 100%... That's why we bought the battery backup unit.
So something is going wrong, but where lays the problem?
Server:
Quote:
8 X seagate cheetah 15k.5, U320, 16mb cache, SCA, 73GB 1 X chenbro backplane, U320, SCA, 2 channels, 8 ports 1 X LSI megaraid 320-2x raid controller, U320, 2 channels, battery pack and 256 upgraded dimm 6 GB DDR PC3200, ECC, CL3 2 X AMD opteron dual cores (4 X 2.0 ghz)
I have Django (python framework) on a server, and I have a little problem. The application is kept in cache by FastCGI
When you make changes to your application you have to restart it. Touching the file doesn't solve my problem. The only solution I have is renaming the .fcgi file always, and if you use an orifinal file name, it actually works like before, prooving it's kept in cache.
What would you do? A cron job to remove these files maybe?
I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.
The think I'm trying to deal with is to force caching theese images by a browser.
When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.
The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.
What is the good value to set query_cache_size. I have set it to 60 M and here is the status. Is it good? I am not sure how to check this? Can anyone explain?
query_cache_size=60M
mysql> SHOW STATUS LIKE 'Qcache%'; +-------------------------+----------+ | Variable_name | Value | +-------------------------+----------+ | Qcache_free_blocks | 5 | | Qcache_free_memory | 62666440 | | Qcache_hits | 922 | | Qcache_inserts | 381 | | Qcache_lowmem_prunes | 0 | | Qcache_not_cached | 565 | | Qcache_queries_in_cache | 182 | | Qcache_total_blocks | 400 | +-------------------------+----------+ 8 rows in set (0.00 sec)
I am currently wanting to add a cache engine that eases the apache server for my php scripts. I just wanted to make sure there weren't cons; bugs with certain pages that need to be reloaded very quickly? Has any of you already experienced such bugs with these progs? Which cache-accelerator would you suggest for php-mysql apache?
Since I got my server its ran with 1gb ram and has kept a free of at least 400mb since that time.
Now withing a few hours all of it is being kept in buffer/cache as the past week an showing about 15mb free (not counting buffer/cache) and has started in on the disk swap of about 400Kb.
So should I upgrade to 2gb now or wait till it goes deeper into the swap, and if so how far into the swap before you'd upgrade?
I'm sure all of you who use eaccelerator know how big the cache can get and that it needs emptied manually. Well at least to my knowledge it does, the only thing I have seen that you can configure is the shm pruning. If anyone does know such a feature with eaccelerator please share. But I also notice a performance decrease and a few php errors mostly related to memory allocations here and there.
Anyway I was piddling around and came up with a command to disable eaccelerator from php.ini, delete the cache folder and then enable it back. I figured this would be good as a daily cron. I would like some input if anyone knows any better ways.
So I wanted to share this in case someone else here has the same problems with eaccelerator cache folder getting huge. If anyone knows a way to make this better or shorter please reply with solution.
Of course this will vary depending on where your php.ini is and where your eaccelerator cache is. Just replace those values with yours. I'm sure there is also a way to use similar commands to find and input these values, again if anyone knows please share.
I have a virtuozzo vps account 64-bit centos running whm/cpanel.
I've been having an issue with high load average at times while very little cpu is being used and there is plenty of ram free, and in looking into this, I've run into another thing that seems very odd to me:
free total used free shared buffers cached Mem: 786432 179944 606488 0 0 0 -/+ buffers/cache: 179944 606488