How to disable filesystem writes?

49 views
Skip to first unread message

mineral...@gmx.de

unread,
Feb 17, 2012, 4:55:36 AM2/17/12
to javamelody
In sensible environments, web application should not (or may even not
be allowed) to write to the filesystem.
How can I disable the file system writes in javamelody? (of coursing
loosing any persistence of the collected data).

Thank you and best regards,
Patric

Vernat Emeric

unread,
Feb 17, 2012, 1:46:06 PM2/17/12
to javam...@googlegroups.com
Hi,

You can disable javamelody with a parameter in the server, for example
with a system property "-Djavamelody.disabled=true":
See
http://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parameters
Like this, you can more easily enable the monitoring in dev and QA and
disable it in the sensible environment.

Or you could use a separated collect server in order to manage the
storage and the reports.
See
http://code.google.com/p/javamelody/wiki/UserGuideAdvanced#Optional_centralization_server_setup
If you do not include the jrobin jar file in the monitored webapp, the
monitored webapp will not try to store the data on the filesystem and it
will wait the collect server to give the data to it.

Otherwise, you can't have the monitoring if you do not store the data in
a filesystem.

bye,
Emeric


Le 17/02/2012 10:55, mineral...@gmx.de a �crit :

mineral...@gmx.de

unread,
Feb 20, 2012, 4:10:22 AM2/20/12
to javamelody
Hi,

thank you for the answer.
Ok - I hoped that it would be possible to store the data in memory
only.
(including some kind of rollover functionality to prevent massive heap
usage).

Do you think it will be possible in the future?

Thanks,
Patric

On Feb 17, 7:46 pm, Vernat Emeric <ever...@free.fr> wrote:
> Hi,
>
> You can disable javamelody with a parameter in the server, for example
> with a system property "-Djavamelody.disabled=true":
> Seehttp://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parame...
> Like this, you can more easily enable the monitoring in dev and QA and
> disable it in the sensible environment.
>
> Or you could use a separated collect server in order to manage the
> storage and the reports.
> Seehttp://code.google.com/p/javamelody/wiki/UserGuideAdvanced#Optional_c...
> If you do not include the jrobin jar file in the monitored webapp, the
> monitored webapp will not try to store the data on the filesystem and it
> will wait the collect server to give the data to it.
>
> Otherwise, you can't have the monitoring if you do not store the data in
> a filesystem.
>
> bye,
> Emeric
>
> Le 17/02/2012 10:55, mineral_was...@gmx.de a crit :

Vernat Emeric

unread,
Feb 22, 2012, 3:37:56 PM2/22/12
to javam...@googlegroups.com
Hi Patric,

I do not think that storing the data in memory only would be possible in
the future.
Because it would need too much change with many risks of massive heap usage.

Sorry,
Emeric


Le 20/02/2012 10:10, mineral...@gmx.de a �crit :

Reply all
Reply to author
Forward
0 new messages