Synchronization and Serialization

One thing to be noted from RMI serialization, like any serialization in java is that serialization of the object doesn’t automagically ensure transactional consistency. In other words, if there is some object, which is modified by the background worker thread, and this same object instance is passed via RMI call to client, then it’s possible…

Read more

Java Strangeness

Interesting knowledge about JIT: Is Your JIT Telling You Lies? Especially interesting is how micro benchmarks lie, which means that trying to trick JIT compiler to do compilation in such small benchmark, can actually give rather misleading results.

Read more

Thanks for the memory

Thanks for the memory Some interesting points: 1: … When a JVM’s Java heap is swapped out, the garbage collector’s performance becomes extremely poor, to the extent that the application can appear to hang. If multiple Java runtimes are in use on a single machine at the same time, the physical memory must be sufficient…

Read more