Main Class not found when running database access speed test

This question is in reference to Atlassian Documentation: Testing database access speed

Hi,

when trying to run the test from this article under Ubuntu i run into the following problem:

 

/opt/atlassian/jira/jre/bin/java -cp /data/AS-4339/atlassian-log-analysis-0.1.1.jar:/opt/atlassian/jira/lib/postgresql-9.1-903.jdbc4-atlassian-hosted.jar \
com.atlassian.util.benchmark.JIRASQLPerformance \
jira asdfasdfasfas \
'jdbc:postgresql://localhost:5432/jiradb' org.postgresql.Driver

when i run it i get 

Fehler: Hauptklasse com.atlassian.util.benchmark.JIRASQLPerformance jira konnte nicht gefunden oder geladen werden

roughly translated:

Errror: Main class  com.atlassian.util.benchmark.JIRASQLPerformance jira could not ne found or loaded

java seems to regard the parameter for the database user name as part of the classname (marked in bold).

how do i fix that?

1 answer

1 accepted

Okay sometimes you just have to replace the spaces you copied from atlassians article manually.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

36 views 3 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you