23 |
|
|
24 |
log.info("StatisticsListener::contextInit called update_interval=" + update_interval); |
log.info("StatisticsListener::contextInit called update_interval=" + update_interval); |
25 |
|
|
26 |
|
if (! sce.getServletContext().getRealPath("/").startsWith("/home/app/") ) { |
27 |
|
//if path not starts with /home/app then it is not running on a production server and we only collects stats on prod servers |
28 |
|
return; |
29 |
|
} |
30 |
|
|
31 |
if ( update_interval > 0 ) { |
if ( update_interval > 0 ) { |
32 |
timer = new Timer(); |
timer = new Timer(); |
33 |
|
|