Tagged: Java virtual machine

Debugging a Java application… Remotely!

Have you ever had the need to debug a Java application remotely? You can! This post describes how you can do using Java and Eclipse. Let’s start by describing some important  Java remote debugging parameters that we’ll make use of later. transport=dt_socket instructs the JVM that the debugger connections will be made through a socket address=8998 opens port number 8998 for use by the debug session suspend=y starts the JVM in...

How to programmatically set Java Logging defaults and override these defaults using logging.properties

The Java Logging APIs provide a number of properties for create and configuring  Java loggers.  If you plan to create a new Java Logger for your project, it may be very desirable to define a default configuration you logger and handlers. It is also desirable to enable users to override these defaults using the JVM logging.properties file. Why is this desirable? The JVM logging.properties ships with a default configuration. This...