home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / APCHSSL2.ZIP / OS2HTTPD / public / htdocs / gsp / status / status.gsp < prev    next >
Encoding:
Text File  |  1999-02-01  |  1015 b   |  49 lines

  1. <html>
  2. <head>
  3.  <title>GSP Status</title>
  4. </head>
  5.  
  6. <!---  NOTE: Please edit this file to suite your needs. -->
  7.  
  8. <body bgcolor="#ffffff">
  9.  
  10. <h1>GSP Status:</h1>
  11.  
  12. Current time: `new java.util.Date()`
  13. <br>
  14. Server running since: `application.getStartTime()`
  15. <p>
  16.  
  17. Requests serviced: `application.getRequestCount()`
  18. <br>
  19. Exceptions caught: `application.getLogger().getExceptionCount()`
  20. <java>
  21.    if(application.getLogger().getExceptionCount() > 0) {
  22.      out.println("( <a href=\"viewexceptions.gsp\">view details</a> )");
  23.    }
  24. </java>
  25. <p>
  26.  
  27. <java>
  28.   long total = Runtime.getRuntime().totalMemory();
  29.   long free = Runtime.getRuntime().freeMemory();
  30.   double percFree = Math.round((free / (total * 1.00)) * 10000) / 100.00;
  31. </java>
  32.  
  33. Total Memory: `total` bytes
  34. <br>
  35. Bytes Available: `free` (`percFree`% free)
  36.  
  37. <p>
  38. <java>
  39.   com.bitmechanic.smtp.Mailer mailer = application.getMailer();
  40. </java>
  41.  
  42. SMTP messages delivered: `mailer.getMessagesDelivered()`
  43. <br>
  44. SMTP messages queued: `mailer.getMessagesQueued()`
  45.  
  46. </body>
  47. </html>
  48.  
  49.