Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th November 2009, 07:46
XLucky XLucky is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy ncftpput and high load server :(

Hi,

Help please solve the problem with ncftpput

I try to execute command:

<? php
...
shell_exec ( 'umask 0000; TERM = vt100; export TERM; nice-n 19 /usr/local/ bin/ncftpput-u user-p pass-P 21 ftp.host.com / /patch/to/file/to/upload.gz 1>> /log/ncftpput.log 2>> /log/ncftpput.log ');
...
?>

Everything works fine, but after completion, is the load on the server.

$> Uptime
$> Load average: 10.11, 15.15, 19.15
And it continues to grow.

How can I solve this problem?
Reply With Quote
Sponsored Links
  #2  
Old 13th November 2009, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please run
Code:
top
to see what processes eat up most of your server resources.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th November 2009, 15:25
XLucky XLucky is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default

After completion of the work(ncftpput) remains httpd process and the load is not reduced, but increased ...
Reply With Quote
  #4  
Old 14th November 2009, 13:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Any errors in your Apache error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 23rd November 2009, 08:49
XLucky XLucky is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

lol
fixed as

<? php
...
shell_exec ( 'umask 0000; TERM = vt100; export TERM; nice-n 19 /usr/local/ bin/ncftpput-u user-p pass-P 21 ftp.host.com / /patch/to/file/to/upload.gz 1>> /log/ncftpput.log 2>> /log/ncftpput.log & > /dev/null');
...
?>

Worked fine with & > /dev/null
Reply With Quote
The Following User Says Thank You to XLucky For This Useful Post:
falko (24th November 2009)
Reply

Bookmarks

Tags
load average, ncftpput

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.