Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to adjust default timeout ajax timeout in JSM

Hi! 

In that article, I will show how to adjust default ajax timeout for JSD portal and will request manageable functionality from Atlassian :)

So that story starts from long-running timeouts request and small performance degradation. 

That instance is used for the 30k active users and works on Jira Service Desk Data Center release on 3 nodes. 

And sometimes our users are met with next errors.

image.png

After observation in first time it was quite complicated to reproduce it. 

Of course, I checked monitoring what’s happened.

image.png

You can see that Jira SM has a default timeout of 60 sec. 

 

Early, I used the next KB  “How to change the default ajax timeout on Jira server” which works well  for Jira software, and Jira Core.

Add into the announcement banner the next info.

<script>
AJS.$.ajaxSetup({
timeout: 356100
});
</script>

 

Unfortunately,  for the JIra Service desk it does not work. Therefore I use fragments from Scriptrunner to adjust the next timeout. 

  1. Open fragments https://jira.example.com/plugins/servlet/scriptrunner/admin/fragmentsimage.png
  2. Create fragmentimage.png
  3. Open the portal and click Inspect in Browser and verify with next command in browser consolle:   AJS.$.ajaxSettings;  image.png

 

I used the next query in ELK  to review logs and check graphs: url~ "POST /servicedesk/customer/portal/?/create/

For creating request action we can use adjusted timeout.

 

 

Conclusion

Please, vote for that ticket, if it’s helpful for you. 

https://jira.atlassian.com/browse/JSDSERVER-8515

Because that parameter looks needful if Jira used for the different users (locations, slow connectivity) and during performance degradation easier you can adjust and evaluate. Also, some rest api can be especially long than constant timeout 60 sec.


Cheers,

Gonchik Tsymzhitov

2 comments

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 31, 2021

Useful info @Gonchik Tsymzhitov . I have voted for the issue.

Like Gonchik Tsymzhitov likes this
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 02, 2021

Thanks @Kishan Sharma ! 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events