Mono 1.2.6 has been officially released. The release features some memory usage improvements which of course has been an issue to me as far as getting BlogEngine.NET to run stably on Linux is concerned.

I've upgraded this server to 1.2.6 and so far so good. The installation was fairly trouble free (which says a lot on Linux), and so far memory usage does appear to be down quite a lot from what it was. I've only just upgraded, so we'll have to see what happens in the next couple of hours/days.

There was one issue I had with the upgrade however. I removed my existing libgdiplus installation in order to upgrade to the new version available for download. After compiling and installing all the new libraries, Mono was complaining about not finding gdiplus.dll. The cause of the issue appears to be that libgdiplus by default installed into /etc/local/lib instead of /etc/lib. As this is where Mono is installed as well, I opted to fix the issue rather than re-install into /etc/lib. The Mono-Project has a page dedicated to finding missing libraries, which is where I found most the information to fix the issue.

Fixing the DLLNotFoundException path issue

Firstly, edit /etc/ld.so.conf and make sure that /etc/local/lib is included in the file.

Then run ldconfig to update the dynamic linker cache (I've noticed that SuSE runs ldconfig after every install. It may be a good idea to run it every time you install anything by compiling from source).

You should also check your /etc/mono/config file to make sure that the DLL mapping is correct. In my case it wasn't. You should see a line that looks similar to this one in the file:


<dllmap dll="gdiplus.dll" target="/usr/local/lib/libgdiplus.so.0" />

If it isn't there, add it. Make sure the path is correct!

I had to reboot my server in order to get everything working correctly after the changes. This may not be necessary in your case, but it doesn't hurt to be sure.

As far as I'm concerned, all Mono needs now for prime time server use is the Compacting GC. Lets hope that it gets delivered quickly!

Comments are closed

I am a software developer / architect currently interested in combining .NET technologies with open-source operating systems. 

I am a member of the open-source BlogEngine.NET development team and focus mainly on ensuring Mono compatibility for the project.

twitter


At StayUnlimited Cape Town accommodation we help you choose from and book guest houses, self catering apartments, bed & breakfasts, luxury villas and hotel accommodation.