How do I safely determine JIRA attachment sizes

Sam Caldwell Atlassian Team May 04, 2015

Here's the problem:

  1. I need to know how big the attachments are for a JIRA instance
  2. But the JIRA instance is under constant load, serving a global user community.

How do I "safely" determine JIRA attachment sizes with minimal impact to my end users?

 

1 answer

1 accepted

This widget could not be displayed.
Sam Caldwell Atlassian Team May 04, 2015

Here is the solution I used:

nice -n 20 ionice -c 3 find /opt/j2ee/domains/atlassian.com/support/jira-home/data/attachments/ -size +25M -exec ls -lah {} \; | awk '{print "size:"$5"\tname: "$9}' > /opt/scratch/attachments_over_25MB.txt

Where I am looking to find attachments greater than 25MB.

Note how I use ionice -c 3 which ensures that I will not have io contention between JIRA and my search.  I also used nice to minimize CPU contention.

Steven Behnke Community Champion May 05, 2015

Thank you for sharing this resource.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

81 views 0 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