5

I work on 3 different orgs. Today while going through a log, I noticed that one org has Maximum CPU time limit of 42000 milliseconds in all synchronous calls. As per governor limits the limits are 10,000 ms and 60,000 ms for synchronous and asynchronous calls respectively. I'm wondering where this 42,000 ms came from. The other two orgs have 10,000 ms limit.

Org 1 (NA13):

enter image description here

Org 2 (NA33):

enter image description here

Org 3 (NA48):

enter image description here

All the other limits are same between all the orgs. Has any one seen this before? I couldn't understand the logic behind this.

1 Answer 1

2

When salesforce rolled out CPU limits in the org which already had lot of code ,to avoid breaking of code in existing orgs,they analyzed each org and figured the maximum CPU time taken by code .Seems like your original org that was there before CPU limits was rolled and hence you are seeing increased limit as that would have a class which needed CPU limit of 4X .

You should figure the class which is taking 4X limit in that org and try and reduce the same .

10
  • Woah that's crazy. Is it documented anywhere?
    – Adrian Larson
    Commented Sep 7, 2016 at 23:02
  • That org was created in mid 2011. I think the CPU time limits were in place by then.
    – Avinash
    Commented Sep 7, 2016 at 23:06
  • 2
    @AvinashN - I believe CPU limits were introduced in winter 14 advancedapex.com/2013/08/22/goodbye-script-limits
    – Eric
    Commented Sep 7, 2016 at 23:09
  • @AdrianLarson If you dig into webinars and blog posts that happened that time ,you will find that .Every org was analyzed before rolling this feature Commented Sep 7, 2016 at 23:11
  • @AvinashN CPU limits came in 2013 .Thanks Commented Sep 7, 2016 at 23:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .