Dispatch.fcgi Kept In Cache

May 21, 2007

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?

View 3 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Cache Lost In Fcgi-php-environment

Oct 11, 2014

Tested with my own comilations as well as the Panda-packages:
- zend opcache configured in php 5.5 and 5.6
- php version assigned to test domains

php-info:
- cache active and running

real-life:
- site loads "normally" on initial load
- cache kicks in on reload - perfect
- 15 seconds later: cache is empty

bottom line: when then php-cgi process ends, the cache is killed too.

Why does it happened? How do I keep the cache persistent? Is it due to cgi/fcgi and fpm would solve it?

View 7 Replies View Related

Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk

Apr 24, 2013

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.

View 2 Replies View Related

How To Turn Off Fcgi

Jun 1, 2009

how to turn off f-cgi?

Its causing big problem at my friend's site, it often leads to 500, 501 and 502 pages, earlier some one mentioned even fcgi could be reason for the error pages as it might show error page if php file takes longer time to load,

so I would like to to turn off fcgi at his site, he uses hypervm-lxadmin, I couldn't find an option when I searched, may be I have missed it, can u guide me through how to solve this issue

and I would like to know if turning off f-cgi will it cause any problem to the site, such as tech, issue to be fixed

View 5 Replies View Related

API - FCGI, Regarding Load

May 18, 2008

I've been using Apache for a long time, switched to fcgi, went to check load and I see that some sites are using like 10-15% of cpu (dual quad harpertown) for a 10 seconds or so. Wordpress blog which is using 700 mb of traffic per month for example.

Is this normal?

I wasn't been able to see that in the past so really din't knew that.

View 2 Replies View Related

Apache + Spawn-fcgi

Apr 14, 2008

I`d like to run php per user using spawn-fcgi (I want to user have own pid file for php process). Is it possible to work? I thing that the way is to add something in VirtualHost file for users something like
spawn-fcgi -f /usr/local/php4/bin/php -P /tmp/$user.pid -s /tmp/$user.sock

Is it possible to do?

I`m using DirectAdmin.

View 2 Replies View Related

Spawn-fcgi Pidfile

Jun 16, 2007

I have php running as fastcgi for nginx and I'm trying to setup monit to monitor the php process and restart it when it crashes. The problem is that I can't seem to figure out which pidfile I should have monit look at.

Here's part of my script that starts the spawn-fcgi process:

#!/bin/bash
#
# chkconfig: 345 22 82
# description: The php-cgi spawnr

## ABSOLUTE path to the spawn-fcgi binary
SPAWNFCGI="/usr/local/bin/spawn-fcgi"

## ABSOLUTE path to the PHP binary
FCGIPROGRAM="/etc/lighttpd/php/bin/php"

FCGIPID="/var/run/php-fcgi.pid"

## TCP port to which to bind on localhost
FCGIPORT="1026"

## number of PHP children to spawn
PHP_FCGI_CHILDREN=8

## maximum number of requests a single PHP process can serve before it is restarted
PHP_FCGI_MAX_REQUESTS=1500

I added the FCGIPID (saw it in an example), but it doesn't seem to do anything. I tried creating a pid file but the pid in it doesn't get updated when I start/stop the script.

View 1 Replies View Related

Apache :: How To Benchmark And Configure FCGI

May 23, 2015

how to benchmark and configure FCGI.

View 4 Replies View Related

Tweak Amount Of Php Process Spawn-fcgi

Apr 5, 2009

Where do I find the file to tweak spawn-fcgi process. I look in lighttpd.conf and php.ini I couldn't find any. I use lighttpd.

View 3 Replies View Related

DNS Cache

Apr 17, 2009

I have moved my domain out of hostgator like a month ago..

[url]

The whois shows my new nameservers and IP

Why is my page being redirected to hostgator suspended page.

My domain is not even registered with them

the domain is nuzil.com

any reviews about that.

View 14 Replies View Related

Cpu Cache?

Apr 28, 2008

the NOCONA and IRWINDALE are old cpu,

i find the main difference of them is L2 cache (1MA2M),

i want to ask what service need more L2 cache?

for example:a lot of db usage? or httpd? or?

View 3 Replies View Related

Dst Cache Overflow

May 17, 2009

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.

View 0 Replies View Related

Page Cache

Jul 25, 2009

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?

are these values good?

echo 20 > /proc/sys/vm/dirty_background_ratio

echo 60 > /proc/sys/vm/dirty_ratio

View 1 Replies View Related

Server Cache

Oct 1, 2009

I have reseller account from small web service company.

they are great and better than the famous company.

but I have one problem. I have personal blog, some time I don't see the new comment, also my visitor see the comment before 4 days ago only.

and there is vb forum, some times new member can't login and only you see the old topic, and some times you see everything ok and up to date.

me and all my visitor have the same problem and that can't be from internet service provider because they are from several country.

I had such problem before 4 years and it was because server Cache.

I didn't name the company because they are great and I don't want to blame them before I know certainly what cause the problem.

View 6 Replies View Related

DNS Cache Poisoning

Mar 19, 2008

What tools do you use to check for DNS Cache Poisoning ? Is there any way it can be prevented and is the problem very prevalent?

View 1 Replies View Related

PHP And Cache-Control

Jan 27, 2008

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.)

View 1 Replies View Related

Mysql Cache On A Vps

Apr 22, 2007

[url]

has an article on mysql query cache.
It notes that in the mysql config file, having

query-cache-type = 1

sets the mysql query cache.

In mysql I note that

SHOW VARIABLES LIKE '%query_cache%';

outputs

+-------------------+---------+
| Variable_name | Value |
+-------------------+---------+
| have_query_cache | YES |

which indicates that cache is set, but...

find . -name "my.cnf"

./usr/local/cpanel/whostmgr/my.cnf
./etc/my.cnf

shows only these

set-variable = max_connections=500
safe-show-database

So where has query cache been set?

At the server level?

If so, am I able to set the query_cache_size and if so, which path?

Anyone have any comments on their mysql optimization on a VPS?

View 0 Replies View Related

DNS/Proxy Cache

Jul 15, 2007

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.

View 6 Replies View Related

Query Cache Denied

Jun 29, 2009

what does this mean? its been flooding /var/log/messages

Jun 28 08:12:50 host named[7649]: client 209.86.63.238#9427: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.230#42462: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 200.23.242.203#37863: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#8080: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.202.215.18#35119: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#40106: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.231#51272: query (cache) 'root.domain.tld/A/IN' denied

View 5 Replies View Related

Getting Around A Corporate Proxy Cache

Oct 7, 2009

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.

View 1 Replies View Related

Edit Linux Cache

Jul 5, 2009

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.

is there a way to clear the old cache out faster?

View 4 Replies View Related

EAccerlator And Cache Dir/RamDisk

Jul 9, 2009

How do I setup a RamDisk or a tmpfs mount? I want to setup cache_dir in memory.

My current settings:

extension="eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp/eac"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="7200"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_only"
eaccelerator.sessions="shm_only"
eaccelerator.content="shm_only"

View 5 Replies View Related

Core2Duo E2180 Vs P4 3.0Gz, 2MB Cache

Apr 20, 2008

Which would you choose:

Core2Duo E2180, 1MB Cache
P4 3.0Ghz, 2MB Cache

View 9 Replies View Related

A Few Words About DNS Cache Poisoning

Nov 26, 2007

What is your opinioun on the subject?

How could it be done?

View 1 Replies View Related

Sda: For Cache Data Failed

Aug 11, 2007

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)

View 3 Replies View Related

Flush Cache On CentOS

Jun 15, 2007

How do I flush the cache on CentOS cache and Buffer or either one.

on top command I see a lot of ram in cache and I want to flush the cache.

How do I do that? any kommands?

View 2 Replies View Related

EAccelerator Cache Size

Feb 1, 2007

how big I should set the cache size for eaccelerator?

Here's the information from the control.php

Caching enabled yes
Optimizer enabled yes
Memory usage 100.00% (16.00MB/ 16.00MB)
Free memory 0.00MB
Cached scripts 148
Removed scripts 0
Cached keys 0

View 1 Replies View Related







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