kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Why does perl consume my entire CPU?

Posted on June 20, 2007

I use a perl script to convert an Excel file to CSV on an Ubuntu mail server. It's a reasonably  high specification machine. But then again the Excel spreadsheet is quite large too. It takes about 5 minutes to convert. During that time, CPU use hits 100% but it only takes 16.5% of memory.

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5559 root 25 0 87520 83m 1688 R 100 16.5 0:06.35 xls2csv

Annoying.
I wish I could use the catdoc alternative written in C, but it freaks out with Japanese character sets.


Related posts

  1. MySQL Server on CentOS, what the RPM doesn’t do for you
    Installing MySQL via YUM Once the updates have finished we will be ready to install...
  2. MySQL Root Password on cPanel
    Wheres the MySQL root password in cPanel installs? Easy, look in /root/.my.cnf...
  3. Messing with time and date on Linux
    Some Linux distros don't come with time synchronisation utilities, even though Windows has done it...
  4. Convert phpBB IP Addresses
    phpBB stores its IP addresses in a funky format. They're useless to the human eye!...

Posted by Kieran


Tagged as: , Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.