azure-functions-java-worker icon indicating copy to clipboard operation
azure-functions-java-worker copied to clipboard

Avoid reading from DISK during cold start specialization

Open shreyas-gopalakrishna opened this issue 3 years ago • 1 comments

When running a profiler for the placeholder pools, it is observed that there are some files which is being read from the disk during specialization. Reading those files before specialization will help in paging in bytes to reduce the disk reads.

The java worker reads files such as below during specialization which impacts cold start numbers.

  • C:\Program Files\Java\microsoft-jdk-11.0.14.1\bin\server\jvm.dll
  • C:\Program Files\Java\microsoft-jdk-11.0.14.1\lib\modules

Read the files during start of the java worker to page in bytes so we avoid reading it during specialization

shreyas-gopalakrishna avatar Aug 30 '22 21:08 shreyas-gopalakrishna

This feature may no longer be needed as we are using the new worker warmup request.

shreyas-gopalakrishna avatar Mar 01 '23 05:03 shreyas-gopalakrishna