Re: Parfait and UoM (java) RPM packages

"Marko Myllynen" <[email protected]>
Newsgroups gmane.comp.sysutils.pcp
Organization Red Hat
Message-ID <[email protected]>
Hi,

On 2016-10-20 05:29, Nathan Scott wrote:
> ----- Original Message -----
>> [...]
>> Hmm, when starting first instance of the might HelloWorld test case and
>> monitoring mmv.HelloWorld.java.uptime for a while, I see the expected
>> uptime:
>>
>> # pminfo -f mmv.HelloWorld.java.uptime
>>
>> mmv.HelloWorld.java.uptime
>>     value 49516
>>
>> But when starting second instance, this happens:
>>
>> # pminfo -f mmv.HelloWorld.java.uptime
>>
>> mmv.HelloWorld.java.uptime
>>     value 2534
>>
>> It seems that any user who is able (*) to start the same application can
>> "override" the metrics for everyone else.
> 
> That's correct - permissions are all filesystem-based - any user can remove/
> truncate/overwrite their own files.  We could perhaps add some file locking
> here, and prevent the second process from starting... not sure if that's the
> right thing to do always though.

I'd say it's a surprise that this happens by default, especially in the
case of Java as the man page says handling of these files is hidden in
libraries like Parfait, one would expect to see new instances like
everywhere else, not overriding existing metrics.

> So, any help would be much appreciated, but I'll aim to get docs updated
> this week.  There's a number of other properties too, including important
> things like JMX-sampling interval, the startup delay, the JMX connection
> info for proxying now of course, and other things.  We'll get there.

Thanks, happy to look at these once the initial obstacles have been
cleared out of the way. (I'm offline parts of next week so no rush with
updates, I'm won't be test anything on this front in the coming days.)

Cheers,

-- 
Marko Myllynen

-=-=-=-=-=-=-=-=-=-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#14559): https://groups.io/g/pcp/message/14559
View All Messages In Topic (18): https://groups.io/g/pcp/topic/2895998
Mute This Topic: https://groups.io/mt/2895998?uid=174580
New Topic: https://groups.io/g/pcp/post

Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580

Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]

Terms of Service: https://groups.io/static/tos

Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.