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
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
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
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

1,005 views 3 12
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