Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp 0 in result file #5

Closed
octaviand2 opened this issue Aug 27, 2020 · 21 comments · Fixed by #9
Closed

Timestamp 0 in result file #5

octaviand2 opened this issue Aug 27, 2020 · 21 comments · Fixed by #9

Comments

@octaviand2
Copy link

Hello,

when running a test with SSHMon collecting resource utilization data, the resulting CSV is fine when running in GUI mode. However, in non-GUI mode the timestamp column's value is 0 for all the entries.

Can you please support?

Thanks
Octavian.

@octaviand2
Copy link
Author

There is also this output in the console, but nothing else in the jmeter.log

The JVM should have exited but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[DestroyJavaVM,5,main], stackTrace:
Thread[Thread-4,5,main], stackTrace:java.lang.Thread#sleep
nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler#generateSamples at line:83
kg.apc.jmeter.vizualizers.MonitoringResultsCollector#processConnectors at line:215
kg.apc.jmeter.vizualizers.MonitoringResultsCollector#run at line:122
java.lang.Thread#run at line:844

@tilln
Copy link
Owner

tilln commented Aug 27, 2020

Hi @octaviand2
Can you please provide

  • your output CSV files,
  • your script,
  • the full jmeter log file,
  • the command line you start it with

so I can analyse what is going on, as I can't reproduce that behaviour.

@octaviand2
Copy link
Author

octaviand2 commented Aug 28, 2020 via email

@tilln
Copy link
Owner

tilln commented Aug 28, 2020

I don't think you can send attachments to that Github issue email. I suggest adding them in the Github web UI.

Great that you have narrowed it down.
What's the content of your properties file? That may be key to a solution.

@octaviand2
Copy link
Author

octaviand2 commented Aug 28, 2020 via email

@tilln
Copy link
Owner

tilln commented Aug 28, 2020

Thanks, I can access those.
I can also reproduce the zero timestamps with my own script.
I'll have to do some investigation where the root cause is: could be JMeter, the JMeter plugins base class or this plugin.

Meanwhile I suggest as a work-around to start with command line option -q rather than -p. This resolved it for me.

@tilln
Copy link
Owner

tilln commented Aug 28, 2020

When the properties file is passed in via command line option -p (rathen than -q), in GUI or non-GUI mode, the default value of the JMeter property sampleresult.timestamp.start=true is not set, but it is treated as false, which means that the result file will not contain the sample start times but the end times.
The end times however, are not assigned properly but default to the 0 value reported here.

When the collector creates a MonitoringSampleResult, the end time is not assigned.

The same issue is present for other, similar Listeners, such as JXMMon and DBMon, but not Perfmon.

So, this issue should be raised for the owning repo (via Google Groups).
Therefore closing this.

@tilln tilln closed this as completed Aug 28, 2020
@octaviand2
Copy link
Author

octaviand2 commented Aug 28, 2020 via email

tilln added a commit that referenced this issue Aug 29, 2020
@tilln
Copy link
Owner

tilln commented Aug 29, 2020

Fix available in 1.3-SNAPSHOT

@octaviand2
Copy link
Author

octaviand2 commented Sep 29, 2020 via email

@tilln
Copy link
Owner

tilln commented Sep 30, 2020

Hi @octaviand2

Please provide more details of your setup that is not working.

@octaviand2
Copy link
Author

octaviand2 commented Sep 30, 2020 via email

@tilln
Copy link
Owner

tilln commented Sep 30, 2020

@octaviand2 you're quite right, that's not working.
I've created #7.
Fix available in 1.3-SNAPSHOT

@octaviand2
Copy link
Author

octaviand2 commented Sep 30, 2020 via email

@tilln
Copy link
Owner

tilln commented Sep 30, 2020

Hi @octaviand2

Please start JMeter in with -LDEBUG and upload the jmeter.log file here.

@octaviand2
Copy link
Author

octaviand2 commented Oct 6, 2020 via email

@tilln
Copy link
Owner

tilln commented Oct 6, 2020

Hi @octaviand2

Thanks for reporting back and confirming.

No estimate yet, as I would like to include a fix for another issue that's been discussed here, and that needs some more investigation.

@octaviand2
Copy link
Author

octaviand2 commented Nov 24, 2020 via email

@tilln
Copy link
Owner

tilln commented Nov 24, 2020

Hi @octaviand2,

For the next release, a new feature has been implemented (jump host support) which depends on features in the Apache Mina SSHD library, so as soon as they release v2.6.0 the new version of this plugin gets released.

@tilln tilln mentioned this issue Jan 5, 2021
@octaviand2
Copy link
Author

octaviand2 commented Feb 17, 2021 via email

@tilln
Copy link
Owner

tilln commented Feb 17, 2021

Hi @octaviand2

Unfortunately that wouldn't be easy, as this plugin is based on JMeter-Plugins Common components, namely AbstractMonitoringVisualizer.
You could consider submitting a pull request there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants