isolateSlotsWarning static method

String isolateSlotsWarning(
  1. int isolates,
  2. int slots
)

the text of the warning of warnIsolateSlots

Implementation

static String isolateSlotsWarning(int isolates, int slots) {
  return '[server] $isolates isolates, but the Dart VM runs only $slots '
      'of them at the same time, so the server uses about $slots CPU '
      'cores. To use all of them, turn on CoreFlags(isolateGroups: true), '
      'or start the app with the environment variable '
      'DART_VM_OPTIONS=${IsolateSlots.flag}='
      '${IsolateSlots.megabytesFor(isolates)}. See '
      'https://dartondox.dev/latest/digging-deeper/deployment/'
      '#give-each-isolate-its-own-memory';
}