Monday, July 12, 2010

Java6u21 is released 4 days ago

That's good news  from  performance perspective since it includes the latest VisualVM version (1.2.2)
According to Oracle release notes this include the following functionality

  • HeapWalker performance improvements
  • VisualVM-Sampler performance improvements
  • BTrace4VisualVM plugin introduces BTrace 1.1
  • Profiling engine bugfixes
  • Built on NetBeans Platform 6.8

It still not a full replacement to a commercial profiler but I hope it will be soon :-)

Tuesday, May 18, 2010

Page file size on machines with large amounts of memory

There is a rule of thumb that page file size (and swap space partition) should be 1.5 times the physical memory of the machine. Now that we have 64 bit machines with 16-64GB of memory this looks like an absurd.

  • We do not want to reserve so much disk space
  • It does not make sense to rely so heavily on disk 

I found two nice references in the internet regarding Linux and Windows

http://www.cyberciti.biz/tips/linux-swap-space.html
http://support.microsoft.com/kb/889654

So my new rule of thumb page file should not be more than 70% full
Paging File\\% Usage Peak _Total < 70%

Wednesday, May 12, 2010

iPad Performance

Just received my new iPad and I must say that I really amazed by its performance. Everything is so snappy kudos to apple. I do want to understand how they were able to create this experience on such a device.
Can someone arrange me a meeting with Steve?

Sunday, April 25, 2010

Dangling Locks

Happy about Java not suffering from dangling pointers ? Think again the Java5 concurrency utils while very powerful looks like a language flaw:
The following code is an example where a lock cannot be released anymore the thread which holds it is dead. Moreover there is no indication who is holding this lock ...... jstack won't help you......
Oracle please fix it !!!


public class DanglingLock {
    static ReadWriteLock l = new ReentrantReadWriteLock();
    public static void main(String [] args) throws InterruptedException  {
        Runnable r = new Runnable() {


            public void run() {
                l.writeLock().lock();
                try {
                    Thread.sleep(20000);
                } catch (InterruptedException ex) {
                    Logger.getLogger(DanglingLock.class.getName()).log(Level.SEVERE, null, ex);
                }
            }


        };
        Thread t = new Thread(r);
        t.start();
                            Thread.sleep(5000);
        l.writeLock().lock();
    }


}

Thursday, April 8, 2010

1 gadget per year policy

Well as I am trying to convince myself that I really need an iPad I use the following arguments
- I must try new technology
- I must understand the hype around tablets

and the most absurd argument is that I need a policy for buying gadgets...
The policy is one gadget per year .....

Sounds reasonable no ?

Sunday, April 4, 2010

I really want an iPad but do I really need it ?

It is cool I fantasize reading books with it viewing movies on the go and browsing the internet in the park....
I am not sure i will continue using it after more than few weeks?
Will I start carrying another device ? not sure.....
I guess that I will continue to hold my breath and wait for Hebrew keyboard, jailbreak and the 3G version....
 

JDK1.6.0_19 is released

No major news just a few bug fixes...
BTW JDK1.6.0_18 included a new version of the VisualVM which is much more powerful and also includes a sampler..... so I was very anxious to see if 1.6.0_19 includes visualvm1.2.2 but it does not ....
Never mind we can always download it directly from the website....

Thursday, February 11, 2010

AWS is offering consolidated billing system

It took them one year but finally......
If you are a company and wanted to use AWS you every user needed to create an acoount and enter billing details.
This is very cumbersome and does not enable centralized management and tracking of cloud costs.
Since not it is going to be changed. You will be able to consolidate all your acoount and get aggregated report for your organization.
I guess that now it will be also possible to limit an acoount budget according to the organization policy.....
Kudos Amazon