Posts tagged General

General Category

General – Yay! – Broke 600K requests for January 2012

0

For the first time since inception, melikedev.com finally broke the 600K requests / month barrier. As such, I wanted to thank everyone for supporting melikedev.com and look out for more, quality articles in the future.

General Category

General – WordPress and Plugins Updated

0

Just finished updating WordPress and associated themes/plugins to their most recent versions. There were few minor, noticeable differences, but overall the upgrade process was relatively smooth. If you are a MLD regular and notice something out of place, feel free to post a comment to this post.

Thanks for your support and understanding.

General Category

General – Merry Christmas – 2011

0

Just wanted to thank everyone who has supported melikedev.com over the last year. I’d like to wish everyone a Merry Christmas and Happy New year, and we look forward to posting more great articles in 2012.

IDE – Netbeans – JVM Performance Tuning – Config Settings

0

I’ve recently switched from Zend 5.5 to Netbeans (v7.0) . I’ve tried Eclipse, Eclipse PDT, and Zend Studio 8, but didn’t care much for any of them. Netbeans is tolerable, so I decided to focus on it as my main IDE, as such I had to research some JVM performance tuning because it was dog slow by default.

The default config looks like:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"

Our goal is to increase the min and max memory limits so we can handle larger code bases. The flags you want to add (manually):


Min Heapsize (2GB): -J-Xms2048m

Max Heapsize (4GB): -J-Xmx4096M

Also, as noted in the config file, enable the following flags:

-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled

So your final config should look like:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Xms2048m -J-Xmx4096m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled"

IBM explanation of some of the min/max settings: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tprf_tunejvm.html

Also, if you have symlinks to deeper libraries, be sure to add the paths to said libraries to the ‘Ignored Folders’ under project properties, this will help reduce un-necessary scanning.

Update (1.27.2012)

There are a few more flags you should consider adding for your netbeans config. There is a new Garbage Collector as of 7.1 which really improved the performance of my netbeans install. You can read more @ Netbeans JVM Tuning. I appended the following flags at the end of my `netbeans_default_options` string (note: remove -J-XX:+UseConcMarkSweepGC because it will be replaced with UseParallelGC):

-J-Xverify:none -J-XX:+UseAdaptiveSizePolicy -J-XX:+UseParallelGC -J-Djava.net.preferIPv4Stack=true

General – Internationalization (i18n) and Localization (l10n) Abbreviations

1

Ever wonder how they derived i18n and l10n to represent internationalization and localization? Don’t be embarrassed, I wondered the same thing.

The answer is easy, they simply took the first letter of either word, appended the letter count of the word, then closed it with the letter n. So the 18 in i18n represents the number of letters in the word ‘internationalization’, and the 10 in l10n represents the number of letters in ‘localization’.

This abbreviated approach is much easier to maintain than having to create vars, files, dirs based on spelled out versions. It   may also clear some confusion if you ever saw I18N or L10N on systems where the I and L look like the number 1 (one).

General – Radius Searching

0

Found a really good article on the topic of radius searching. Check it out: http://www.movable-type.co.uk/scripts/latlong.html

Go to Top