admin@glassfish.java.net

Simple web questions

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Fri, 13 May 2011 19:06:06 -0700

I'm trying to figure out automated tests we have for Web Monitoring.
This makes no sense to me. Does it make sense to you?

Scenario:
I create a cluster with 2 instances.
Deploy HelloWeb to the cluster
start the 2 instances.
*i1.applications.HelloWeb.server.totaljspcount-count = 0*
Hit the webapp, on i1, in a browser.
*i1.applications.HelloWeb.server.totaljspcount-count = 1
*
That makes sense. the count never changes again.

Now hit the web app on i2
*i2.applications.HelloWeb.server.totaljspcount-count = 2*

Whoa! Unexpected! It talked to the other instance and knew it should
set it to 2? The 2 never changes

Meantime:
*i1.applications.HelloWeb.server.totalservletsloadedcount-count = 0
i2.applications.HelloWeb.server.totalservletsloadedcount-count = 2*

These values never change. i1 has no servlets loaded? i2 has 2
servlets loaded? What are we testing here? This seems really weird.
Is it a bug or a feature?

Then I deployed a different simple app to DAS. Then a copy of that same
app to the cluster.
DAS has servlets loaded count set to 3. For exactly the same app, i1
has the servlets loaded count set to 0



-- 
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment