June 25, 201313 yr Im using exec to run an exporting to csv script, ive got it all working and running in the background, but when i try to export several hundreds of thousands of rows it sends the cpu usage to 94-98% making running it in the background usless, Is there a way to set a max memory usage on the script so it will only use ie 50% of the allocated memory without terminating the script.
June 25, 201313 yr Author in the end i found http://www.cyberciti.biz/faq/cpu-usage-limiter-for-linux/ it did manage to limit the process to xx% but the script is locking the sql table so cant process anything until the script has finished, what i thought was a simple 1-2 day job has become a nightmare lol
Create an account or sign in to comment