kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Apache, JungleDisk and Port 80

Posted on July 3, 2007

Posted by Kieran

I was tearing what little hair I have trying to solve a very strange bug on Windows with Apache 2 & JungleDisk.
(Yes I use Amazon's Simple Storage Service for all my backups).

I was getting the following errors in Event Log, for what appeared to be no reason.

The Apache service named reported the following error:
>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 .

The Apache service named reported the following error:
>>> Unable to open logs

Why does perl consume my entire CPU?

Posted on June 20, 2007

Posted by Kieran

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.

Tagged as: , No Comments
Page 4 of 41234