Cronjob Every X Seconds

Mar 26, 2007

to set up a serious of scheduled tasks. For example at 9:35:12 PM I would need a php script to run. And its very important that it run at the 12 second mark for the 35th minute. This seems like an application for a cronjob. Anyway, it looks like you can only have cronjobs run every minute, not seconds.

View 1 Replies


ADVERTISEMENT

Server Crashes Every 600 Seconds

Feb 13, 2007

Today, I put a new server on our racks.

Problem: the machine crashes exactly every 10 minutes. The crash occurs with no entry on the logs and with 0.00 load. It is as if someone take out the current every 10 minutes.

Here are the specs:

- 2 CPU Intel Xeon 2.0
- 8 Gb RAM ECC
- 2 x 250 Gb HDs

This machine needs plenty of current. I wonder if I am not going over the rack power quota. May be there is a system to allow overages for then 10 minutes, then it cut back the current to the rack quota.

View 2 Replies View Related

Mysql Connections Topping Out Within Seconds

May 13, 2009

i have a small cluster (one web and one db) setup and i host a rather popular group of 4-5 sites that allow users to dynamicly create their own mobile chat communitys automaticly. each site gets its own mysql db created and populated automaticly.

this is all fine,

but in the last 24hours weird things have begun happening, previously i had the sql max_connections set to 500 and this was perfectly adquate for the demand but now even when i set the connection to 4000+ they are all maxxed out within 5-10 minutes, and mysql processlist shows thousands of unauthenticated user connections sitting at login status,

i have gone through the sites and all their mysql configs are fine so i cant see what the issue is.

server specs below

db server:
dual amd opteron 246
8GB ram
120gb hd(64gb free)
33gb swap (rarly used but their for emergencys)
centos 5 64bit.
direct 100mbit lan to web serv
only mysql,ssh and webmin running, no other apps installed

web server:
amd athlon 64 3800+
plesk 9.2.1
4gb ram
2x120gb hds

apache status onthe web server only shows 120ish http connections but the sql keeps climbing

View 8 Replies View Related

Lighttpd - Backend Died; We'll Disable It For 5 Seconds

Jan 10, 2008

My log is filling up with errors + 500 internal displaying:

2008-01-09 16:17:50: (mod_fastcgi.c.2703) fcgi-server re-enabled: unix:/tmp/php-fastcgi.socket-1
2008-01-09 16:17:59: (mod_fastcgi.c.1731) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-1
2008-01-09 16:17:59: (mod_fastcgi.c.2885) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 5
2008-01-09 16:18:05: (mod_fastcgi.c.2703) fcgi-server re-enabled: unix:/tmp/php-fastcgi.socket-1
2008-01-09 16:18:18: (mod_fastcgi.c.1731) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-1
2008-01-09 16:18:18: (mod_fastcgi.c.2885) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 5
2008-01-09 16:18:24: (mod_fastcgi.c.2703) fcgi-server re-enabled: unix:/tmp/php-fastcgi.socket-1
2008-01-09 16:18:33: (mod_fastcgi.c.1731) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-1

I have tried all sorts of combos.

Core2Duo 1 processor
Lighttpd 1.4.18
PHP 5.2.5
xcache 1.2.1
2gig ram

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/php5/bin/php-cgi",
"min-procs" => 2,
"max-procs" => 6,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "10",
"PHP_FCGI_MAX_REQUESTS" => "1000"
)
)
)

View 13 Replies View Related

Squid Frontend Gives 0 Network Output For Seconds At The Time

Mar 27, 2009

I have an apache server on windows which I wanted to speed up using caching systems.

I tried installing squid, and I got it working with a basic example config. It seemed to work well, however under more heavy load I experienced some weird behaviour where network output is 0 for several seconds at the time, and all clients just hang in the wind and wait for a respons.

Remote to the server is working fine, so it's definitely a squid issue.. with only apache running the server is constantly sending out data, no halts there.

Any hints on what errors I should be looking for?

View 1 Replies View Related

30 Seconds To Initial Response - Wordpress / Apache On Linux VPS

Oct 17, 2013

My site will wait for 30s almost everytime before loading any of the page itself.Specs of my install:

- DigitalOcean Droplet (VPS) with Ubuntu Server 12.10: 512 Ram and 20GB SSD (not even coming close to needing more RAM, still have 240MB free according to top)
- Wordpress 3.6.1
- 5 plugins: W3 Total Cache, Wordpress SEO by yoast, WP Better Security, WP Smush.it, and Redirection (problem occured before adding the last 2, I can't remember about the others)
- No traffic to speak of. I get maybe 10 uniques/day.
- Apache 2.2.22
- MySQL 5.5.32

I've optimized my site itself the best I can, minifying and combine js and css files, using the WP Smush. It plugin to compress images, serving jQuery from a CDN, but none of that worked the 30 second wait (though it did shave about 10 seconds off the load time after the wait for response).

I was using cloudflare and had to fiddle with the nameservers of my domain, but cloudflare didn't work at all and I switched the nameservers back to normal pointing DNS directly at my site to eliminate the obvious causes. I'm comfortable with Linux and the command line. This is the link to my site: [URL] ....

View 3 Replies View Related

Plesk 12.x / Linux :: Page Loading Time 50-60 Seconds

Jun 7, 2015

I have installed NGINX + PHP-FPM + PHP5Memcached + Memcached + APC on my VServer. My Problem is Page loading time of around 40-60 seconds. Installed is 12.0.18 Update #49

[URL] .....

Connection Setup: TIME
Stalled: 1.860 ms
Request/Response
TIME
Request sent: 0.214 ms
Waiting (TTFB): 47.08 s
Content Download: 41.757 ms
Explanation 47.12 

I have reconfigured the Domains but nothing changed and Bootstrap Repair

Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
If I disable Nginx and use "Apache Module" for PHP than the TTFB time is shorter but is not the prefered way. If I use "CGI" or "FASTCGI" without Nginx than the Page loading time is a little bit shorter but with Erros on the Website.

I tried to reinstall Nginx from Plesk but this gave me Error after enable it

root@vserver:/# /usr/local/psa/admin/sbin/nginxmng -e
[2015-06-08 00:26:12] ERR [util_exec] proc_close() failed
...
[2015-06-08 00:26:13] ERR [util_exec] proc_close() failed
[2015-06-08 00:26:15] ERR [panel] Apache config (14337159720.96731500) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist
file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Destination directory '/etc/nginx/plesk.conf.d/vhosts' not existClick to expand...

View 3 Replies View Related

Cronjob Using GET

Feb 24, 2008

I wanna cronjob using get,

View 3 Replies View Related

Cronjob

Feb 5, 2007

which file the crontab/cronjob is saved to?

View 5 Replies View Related

How To Do This With A Cronjob

Jul 13, 2007

I want to copy a sql file from my secondary hdd to my NAS daily at 5AM and overwrite the older file with the same filename without prompting for confirmation.

the .sql file is in:

/backup/cpbackup/daily/server/mysql/john_forum.sql

and the NAS is located in /mount/stuff/

View 8 Replies View Related

About Cronjob

Aug 3, 2007

i have an command want to run every seound not every minutes so how can i do this in crontab file

View 5 Replies View Related

Cronjob

Sep 18, 2007

how to save the work after you are done editing in SSH.

Currently I want to edit my cronjob in ssh so i type "crontab -e" and it shows the screen which displays cronjobs of the server so after all this how you save it after your done editing it in ssh?

View 3 Replies View Related

ProFTPD: 421 No Transfer Timeout (300 Seconds): Closing Control Connection

Dec 17, 2007

Since moving servers I've been plagued by constant disconnects whilst using FTP:

421 No transfer timeout (300 seconds): closing control connection

I've gone through Proftpd's forum and documentation numerous times to try and find a solution to this but have been unsuccessful so far.

Within proftpd's config file it's set at:

TimeoutLogin 120
TimeoutIdle 3600
TimeoutNoTransfer 3600
TimeoutStalled 3600

So I am unsure where it is getting the "300 seconds" from.

Even though the error states 300 seconds, this problem happens way before 300 seconds every time and has happened during the transfer of files (when the connection has been active and in use).

I've tried 3 different FTP clients and used the "Keep Alive" option in each and it has absolutely no effect.

I am unsure if APF is causing the problem, I can't see any problems in any of the server logs in relation to ftp.

View 5 Replies View Related

Fatal Error: Maximum Execution Time Of 30 Seconds Exceeded

Feb 5, 2007

while i am restoring db (110MB) via SSH following error occur

Code:
ERROR 1064 (42000) at line 145689: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
Fatal error: Maximum execution time of 30 seconds exceeded in ' at line 1

View 12 Replies View Related

Cronjob Not Found

Feb 22, 2008

I got a new BOX, i see 'cronjob' not working,

cronjob
-bash: cronjob: command not found

I installed

yum install vixie-cron.i386

Still

cronjob
-bash: cronjob: command not found

# cron
-bash: cron: command not found

how can i get 'cronjob' working?

View 4 Replies View Related

WHMCS CronJob

May 14, 2008

I have a reseller account with Reseller Zoom. My problem started 72 hours ago when I noticed my WHMCS was not working on my website. I was also recieving Cron Daemon emails stating:

Site error: the file <b>/home/tmass10/public_html/clients/admin/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

at this time i was using the standard WHMCS cron: php -q /home/tmass10/public_html/clients/admin/cron.php

RZ told me they made a custom php.ini file and placed it in my directory. Then said to change my Cron job to

php -c/home/tmass10/public_html/clients/admin/php.ini /home/tmass10/public_html/clients/admin/cron.php

At this point i noticed the WHMCS was loading again on my website. However I am still recieving Cron Job errors.

View 14 Replies View Related

Delete A Cronjob Via SSH

Mar 23, 2007

I have a cronjob that is still entered in my server, but due to my own lack of knowledge i deleted the domain from my server without removing the cronjob and now i keep getting the emails from my server

Code:
/bin/sh: line 1: /home/userID_Removed/public_html/cgi-bin/script-removed/cron.cgi: No such file or directory
I just need to know how to remove the cronjob via SSH, i logged in as Root to my SSH and then did crontab -l and I see the two cronjobs I want to remove, but can't find the code to do so anywhere via Google.

There is 3 total that I want to remove but there is about 10 cronjobs setup there so i want to remove those three and make sure the other 7 stay running as they should.

View 2 Replies View Related

Cronjob Doesn't Run

Mar 2, 2007

I have a strange problem with cronjob - it doesn't run. I added a cronjob using webmin to run twice in one hour:

Command:
/usr/bin/php /home/site4/public_html/maintenence.php

It's a php script with some mysql queries. For testing purposes in the end of script I added command to send me mail when cronjob is done. I never get mail.

If I click on "Run now" in Webmin interface, everything works fine - cronjob is done and I get mail. So, I am sure that there is nothing wrong with script, but for some reason my cronjob just doesn't run.

View 14 Replies View Related

Rsync - Setting Up Cronjob In CPanel

Jun 16, 2009

I am unable to set cronjob, keep getting message; "Host key verification failed."

If I run command via SSH everything works properly.

I did follow information posted here: http://www.bqbackup.com/setup.html

I think it has to do something with key. In what folder on BQ server should I copy id_rsa.pub key from main server?

This is command I want to run:

rsync -avz -e ssh /home/username/public_html/ username@username.bqbackup.comerver1

View 6 Replies View Related

Rkhunter :: Invalid Option Specified: -cronjob

Sep 18, 2009

Server Detail : Ceontos / Cpanel

i have installed RKhunter several days ago , after installation i`m receving below email everynight

subjectDaily Rkhunter Scan Report
Invalid option specified: -cronjob

View 6 Replies View Related

Plesk 12.x / Windows :: Set CronJob For WHMCS?

May 23, 2015

i'm install whmcs in My plesk 12 for Windows now i set Cron Job but system Send email with subject "Parallels Panel Scheduler notification" and attached Files and Write>> Could not open input file: php ...

and I attached ScreenShot

View 3 Replies View Related

Plesk 12.x / Linux :: Browsing Using File Manager Or Clicking On Domains Or Sitting Idle For Like 15 Seconds

Oct 24, 2014

It seems that since my latest update of 12.0.18. Now everytime I login to the Admin interface of plesk. I am prompted to relogin several times when browsing using file manager or clicking on domains or sitting idle for like 15 seconds.

It can do this up to 5 times in a 5 minute period or while not even being idle.

View 9 Replies View Related

Cronjob :: User/bin/crontab Permissions Are Incorrect

Apr 19, 2008

I am trying to setup a cronjob but cPanel, (Linux Centos 5), tells me that user/bin/crontab permissions are incorrect and need to be changed to 4755 - I try to change permissions in WinSCP [Properties] but it doesn't 'take'.

how to force a change of permissions with SSH (Putty)

View 2 Replies View Related

Plesk 12.x / Linux :: Executing Cronjob Every Minute

Apr 18, 2015

A customer want to execute a cronjob in plesk every minute, but the cronjob was only executed every 5 minutes...

(so that the cronjob was executed every minute...)

View 2 Replies View Related

Plesk 12.x / Linux :: Cronjob To Backup Email On One Domain?

Oct 29, 2014

Seems if I want to back up a domain's emails to a remote server (3x a week) I might be able to accomplish that with a Scheduled Task / Cronjob? I have a weekly full domain backup from the Plesk scheduled backup. But I can only set one backup per client. So I'd like to backup email separately, several times a week.

I found this:

# /usr/local/psa/bin/pleskbackup –domains-name yourdomain.com –only-mail -v

But I'm looking to send to a remote FTP repository. Can it be done with "Scheduled Task"?

View 8 Replies View Related







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