Some more description of how the launcher script on Linux and Solaris works:
If the first parameter is either "-gdb" or "-gud", HotSpot will be
launched inside gdb. "-gud" means "open an Emacs window and run gdb
Solaris: If the first parameter is "-dbx", HotSpot will be launched inside dbx.
If the first parameter is "-valgrind", HotSpot will be launched
inside Valgrind (http://valgrind.kde.org) using the Memcheck skin,
and with memory leak detection enabled. This currently (2005jan19)
requires at least Valgrind 2.3.0. -Xmx16m will also be passed as
the first parameter to HotSpot, since lowering HotSpot's memory
consumption makes execution inside of Valgrind *a lot* faster.