jNetPcap v2 discussion

Its been a while since jnetpcap received a refresh and I think one is overdue. I would like to start a discussion on how to proceed with jnetPcap v2.

Code Trivia: Enforcing Java Singletons is Very Hard

Here is my response to an article posted by Per-Ake Minborg on Javalobby:

Article link: Enforcing Java Singletons is Very Hard

How to avoid OOM and DisposableGC errors

Here is our recommendation on how to avoid "Out of Memory Exceptions". The newer JVM GC (JRE 6 and 7) utilize parallel GCs which do not work with jNetPcap's DisposableGC. Because of large amount of RAM available in today's systems, it is tempting to increase -Xmx and -Xms parameters to something huge. However this is counter productive and is main reason why OOM messages occur in jNetPcap.

Utility: eclipse stop button shutdown hook workaround

An outstanding issue with IDE environments (Eclipse/NetBeans/etc) is the fact that under IDE environment pressing the "red stop" button to terminate the application while running or debugging causes the process to terminate so abruptly as not to allow java VM hooks to execute and perform the necessary cleanup, among other things. Just look at this Eclipse bug 38016.

jNetPcap OS 1.4.r1425 released!

Released an update to 1.4 development. The release fixes several new bugs and is a bit more stable.

For more information look at the changelog and is available for download here.

What do our customers have to say?

Dimentrix recommends jnetpcap as the Java library of choice when reading packets off the network. We have used this library extensively in our flagship "sqlShark" ( and it has performed admirably. Even under tremendous load, the memory usage was low and response time high. We are also very satisfied with the support given to us by Sly Technologies. Their engineers were prompt in resolving any issues, proficient in network programming and level of commitment was at par with any ISO certified organization.

Vikram Roopchand
Dimentrix, Inc.

Posted by wkunes — 2012-04-24
Nice and Easy to use.
Posted by Ian — 2012-03-27
jnetpcap works perfectly, thanks
Posted by DimitrisK
Great, it's interesting.