Thursday, December 24, 2009

Java Native Memory Leak DeflaterOutputStream Derby or MySQL

So with some more recent database code. We we're compressing data elements before writing them to the database. Well our servers kept running out of memory. I mean Gigs and Gigs of memory.

Traced it down to if you don't call Session.End() on GZIPOutputStream or DeflaterOutputStream it will leak large amounts of Native memory.

This article has more details.

Native memory leaks suck to debug, took us about a week to find this. I hope this helps some other people.

Ultramon for Windows 7

Ultramon Beta is great for Windows 7

Works like a charm with even nice start menu;s

Download it here

Solution to Skype 3.8 on Windows 7

So I hate Skype 4.0 they just messed too much stuff up for me. So I like to run the old version of skype 3.8 but it doesn't work for Windows 7.

The solution, run Skype 3.6

I can confirm this build works (

Alcohol 52% Windows 7 mount mds or iso Disk Images

Recently I upgraded to Windows 7. Alcohol 52% no longer works. :-(

Lucky Daemon Tools Lite works on Windows 7 and is a nice replacement. Sometimes I still use Alcohol 52% on Windows Vista to make images

Download this version

Saturday, July 11, 2009

C# POP3 Library with SSL for Gmail

So I ended up searching for hours trying to find a free C# library to do POP3 access to a SSL server like gmail. In our company we use Google Apps and we like gmail's mail server, it would be nice to be able to have programmatical access to these mail accounts. How does this not exist?

So this solution takes Open source library and makes some very small tweaks so it has Ssl support.

Here is the important simple code snippet.
Stream actualstream = clientSocket.GetStream();

if (useSSL) {
System.Net.Security.SslStream sslstream = new SslStream(clientSocket.GetStream());
actualstream = sslstream;

Attached here is the re zip of the source code with the change to the library and also a tweak to the sample app with a checkbox to include SSL support.

OpenPOP with SSL Source Download

OpenPOP with SSL Binaries Download