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

2 votes
Accepted answer
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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,704 views 17 21
Read article

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