home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <title>GSP Status</title>
- </head>
-
- <!--- NOTE: Please edit this file to suite your needs. -->
-
- <body bgcolor="#ffffff">
-
- <h1>GSP Status:</h1>
-
- Current time: `new java.util.Date()`
- <br>
- Server running since: `application.getStartTime()`
- <p>
-
- Requests serviced: `application.getRequestCount()`
- <br>
- Exceptions caught: `application.getLogger().getExceptionCount()`
- <java>
- if(application.getLogger().getExceptionCount() > 0) {
- out.println("( <a href=\"viewexceptions.gsp\">view details</a> )");
- }
- </java>
- <p>
-
- <java>
- long total = Runtime.getRuntime().totalMemory();
- long free = Runtime.getRuntime().freeMemory();
- double percFree = Math.round((free / (total * 1.00)) * 10000) / 100.00;
- </java>
-
- Total Memory: `total` bytes
- <br>
- Bytes Available: `free` (`percFree`% free)
-
- <p>
- <java>
- com.bitmechanic.smtp.Mailer mailer = application.getMailer();
- </java>
-
- SMTP messages delivered: `mailer.getMessagesDelivered()`
- <br>
- SMTP messages queued: `mailer.getMessagesQueued()`
-
- </body>
- </html>
-
-