function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rcravenrcraven 

How to determine current total -vs- Governor limit - total apex code per Org 1MB?

I would like to determine current total apex script size against stated governor limit of 1MB.  I would also like a break down per Apex class/trigger.  Is this possible?

 

I've review the Limit methods.  Would any of the following API provide this information:

 

  • runTests
  • compileAndTest
  • compileClasses
  • compileTriggers

 

Thanks in advance for any assistance.

jpwagnerjpwagner

I think the 1MB limit is for storage of the text of apex scripts.  You'll need quite a bit of apex code to hit it.  I don't believe there are limit methods to check this.

 

What you describe above are not the "Limits methods".   Read this: http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_methods_system_limits.htm

 

 

cogcog

If you want to see how much your current usage is, go to Develop->Apex Classes and you can see your usage on the top left corner

 

Total Apex Size: 515734 of 1000000  

 

Message Edited by cog on 10-21-2009 10:49 AM