logo       

RE: session count in resin 2.1.11: msg#00061

text.xml.resin.user

Subject: RE: session count in resin 2.1.11

Hi,
 
You could use Scottit to get an overview of session count for each webapp deployed on the server running Scottit.
 
Kind regards,
-----Oorspronkelijk bericht-----
Van: owner-resin-interest@xxxxxxxxxx [mailto:owner-resin-interest@xxxxxxxxxx]Namens Qiao Jin
Verzonden: maandag 8 maart 2004 19:55
Aan: resin-interest@xxxxxxxxxx
Onderwerp: session count in resin 2.1.11

Hi,
 
What is the best way to get a count of current live sessions? I tried using ApplicationAdmin and ServerAdmin but got "cannot resolve symbol" errors on them from the comipler. I see com.caucho.http.admin in resin.jar and resin.jar iss on the classpath. Any idea? Thanks -Qiao
 
== status.jsp ==
 
<@page import="com.caucho.http.admin.*" %>
<%
ApplicationAdmin appAdmin = new ApplicationAdmin(application);
HostAmdin hostAdmin = appAdmin.getHostAdmin();
ServerAdmin serverAdmin = appAdmin.getServerAdmin();
 
%>

<html>
<body>
<p>
<br>appAdmin.getActiveSessionCount() : <%= appAdmin.getActiveSessionCount() %>
<br>
<br>hostAmdin.getName(): <%= hostAmin.getName() %>
<br>
<br>serverAdmin.getActiveConnectionCount(): <%= serverAdmin.getActiveConnectionCount() %>
<br>serverAdmin.getConnectionCount() : <%= serverAdmin.getConnectionCount() %>
<br>
</body>
</html>
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise