Valentine's DayFebruary 14th, 2011
Yes, it’s that time again, Feb 14th.. It’s Valentine’s Day.
Don’t know who has told my wife, but now I have to do some love, uuurgh..
How ever, this one is for my little valentine:
Love you soo much, of course! ;-)
PS. If you are able to catch one of these flower or praline seller: beat the living daylights out of them!!
java.lang.OutOfMemoryError: Java heap spaceFebruary 12th, 2011
I was just contacted concerning this Java memory problem, here is how you can get rid of it.
The amount of Ram for an Java application is limited by the JVM. To provide more memory to a single application you can start your Java process with two more parameters, like:
This allows Java to use up to 1024 MB. Here
-Xms specifies the initial heap size, while
-Xmx determines the maximum size.
For machines with much more mem you might use
g instead of
m to set the size in gig’s. So
-Xmx10g limits the amount of RAM to 10 GB.
Of course it’s annoying to apply these parameters to all your Java runs, so to change this behavior user-wide, you may create an alias like:
or better: Tell it to the Java Plugin Control Panel!
Using Xfce you can find this tool in your panel’s menu in the Settings section. Gnome users may look in System > Preferences. If you don’t want to move your mouse you can also run
ControlPanel from your terminal.
This opens a window, default parameters can be applied in the tab Java, click View… and add your parameters to the Runtime Parameters column. This tool afterwards writes something like the following line to
So advanced users craving for trouble may edit this file on it’s own :-P
MySQL upgrade failedFebruary 11th, 2011
Still upgrading some of our servers from lenny to squeeze, actually I run into MySQL trouble…
While upgrading from the package
5.0.51a-24+lenny5 -> 5.1.49-3 aptitude told me the following:
Mmh, a look into the
/var/log/syslog pointed to the following errors:
Many messages at once.. To make a long story short the main problem is this line:
So edit your
/etc/mysql/my.cnf and comment the following line (in my configuration it’s line 94):
That’s it, retry to configure the new version and everything will turn out all right.
Apache not parsing PHP filesFebruary 10th, 2011
I just had a confusing problem: instead of interpreting PHP-scripts in our webserver’s userdir apache serves them for download!
It’s caused by an upgrade from lenny to squeeze and I spend a lot of ours with fixing.
This is really a serious problem, these sites aren’t able to read for those people/search engines etc. that are browsing and, more fatal, if clients are able to access the PHP code of our students/staff they might explore security issues or passwords stored in these PHP files, so first of all I disabled the public access to the webserver.
So what was the problem? When I recognized that phpMyAdmin and other not userdir related stuff still works fine, I searched for issues that differ for userdirs. At long last I took a look into the
libapache2-mod-php5 config file located in
As you can see, PHP is disabled if the userdir module was enabled… Disgusting! Commenting these lines out switched PHP for users on. Very annoying!
It's squeeezzedFebruary 6th, 2011
Yes, Debian’s 6th release, codename squeeze, has become stable yesterday!
Those of you following Debian on twitter should have noticed yet, they announced it in about 4 million tweets ;-)
To mark the occasion the also redesigned the whole web presence, just take a look at their new layout!
This article is just a small THANK YOU to the whole Debian team, they are working hard to make your life much more comfortable! Great work guys!
By the way I send some greetings to all the administrators out there running Debian. Just have a look at figure 1 :-P