Questions tagged [cpu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
53 views

Lightning Component Indexing in VisualStudioCode hogs CPU and memory slowing my PC

I keep seeing "Indexing Lightning Components" in Visual Studio Code, which is a CPU and Memory hogging activity, slowing my PC. Is there a way to make it less CPU intensive?
1
vote
1answer
166 views

Scheduled Process to Update Price Book Entries

I need to write a process to handle the following: Retrieve all price book entries for the standard price book Retrieve all price book entries for non-standard price books that have a matching ...
0
votes
1answer
120 views

Test method passes when run individually, but hits CPU limit when run with other methods

I'm working on an apex class that does the following: On a given record, compress field data from it and four child objects into CSV format on a long text field Export the compressed data to files in ...
4
votes
2answers
2k views

Contact Mass Update - “System.LimitException: Apex CPU Time Limit Exceeded”

I'm attempting a mass update on Contacts via Execute Anonymous. My code gives me the following error: System.LimitException: Apex CPU Time Limit Exceeded Here's my code: List <Contact> ...
11
votes
2answers
2k views

CPU issues caused by process builder and workflows has really gotten bad in last 3 releases

Not getting much activity on the Salesforce Community site with this one so I'll try it here. I've noticed a massive spike in CPU exceeded limits since Summer 15' and Winter 16'. I've personally ...
7
votes
2answers
167 views

Significant elapsed time differences when calling sort() on different Comparable implementations

Before I dive into a bit of code, a summary of my question is: does anybody know what Salesforce does internally when calling .sort() on a List of custom classes? Scenario: I have a wrapper class ...
1
vote
0answers
114 views

Apex cpu time limit without change anything [closed]

In my instance I could insert or update record with a batch size of 100 records without problem. The last week and with the same code in production we started to get the apex cpu limit and we have to ...
2
votes
0answers
301 views

CPU Timeout - SendEmail API resulting in Maximum Timeout

We are facing issue with the Maximum CPU Time in our Sandbox and Production. Here is the scenario: We have a visualforce page which allows to send email to contacts(working fine for less than ...
2
votes
2answers
715 views

como puedo resolver este error que me aparece / how to resolve error: 'apex cpu time limit exceeded'

tengo mas de 4000 registros en cada uno de los objetos como puedo resolver el error que me aparece de apex cpu time limit exceeded public class ConciliacionController { //declaracion de variables ...
0
votes
1answer
212 views

How Salesforce makes sure that no single tenant consumes majority of CPU cycles?

I am new to salesforce and just into theory as of now. I have been hearing a lot about multi-tenancy architecture which makes me think how do salesforce divides the CPU cycles. I looked into ...
80
votes
3answers
11k views

How does SF calculate the CPU time?

How does SalesForce calculate the CPU Time that was introduced in Winter '14? I am seeing varying results from it. Why does the CPU count vary? I am running a single block of code over and over again ...