How do I safely determine JIRA attachment sizes

no_longer_in_sudoers_file
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 4, 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
Answer accepted
no_longer_in_sudoers_file
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 4, 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 F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2015

Thank you for sharing this resource.

Suggest an answer

Log in or Sign up to answer