I feel like I'm missing something fairly fundamental here. I'm
building a clustered application that uses ZooKeeper (3.3.1) to store
its configuration information. There are 33 nodes in the cluster
(Amazon EC2 instance, if that matters), and I'm currently using a
single ZooKeeper instance. When a
other messages on the list that 2 is a
good value.
>> Do I have a fundamental misunderstanding? What else should I do to
>> figure out what's going on here?
>
> As I suggested above, give GC logging a try. I found 'gchisto' a very useful
> tool for reviewing the resulting log files.
> http://sysadminsjourney.com/content/2008/09/15/profile-your-java-gc-performance-gchisto
Tony will be chuffed to hear that folks are recommending his gc tools
:-) I'll let you know how I get on.
Steve
--
Stephen Green
http://thesearchguy.wordpress.com
one, folks.
Steve
--
Stephen Green
http://thesearchguy.wordpress.com
ossibly by giving up). Obviously
I could do some of this by shutting off the server and restarting it,
but I'd like to be a bit more systematic, if possible.
Is there any way to inject failures into the ZK client so that I can
test without having to randomly kill servers/clients?
Thanks,
Ste
view)
>From recent experience, the incantation:
-verbose:gc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
at JVM startup time will give you very good information about what the
garbage collector is doing.
Steve
--
Stephen Green
http://thesearchguy.wordpress.com