in reply to Re^2: Reusing Compiled Perl or Opcode for Apache Server
in thread [CLOSED] Reusing Compiled Perl or Opcode for Apache Server

I agree with RonW in that it is likely to be impossible FAPP. However, there are a number of alternative strategies which you could employ:

  • Comment on Re^3: Reusing Compiled Perl or Opcode for Apache Server

Replies are listed 'Best First'.
Re^4: Reusing Compiled Perl or Opcode for Apache Server
by mlodato (Acolyte) on Aug 18, 2017 at 01:10 UTC

    Thanks to you and RonW both! I did more digging and I agree that due to Perl's blurry compile-but-I'm-going-to-run-some-stuff-too phase, this just isn't feasible.

    For most of us, response time of requests is more important than server start, but I just didn't know if this could be done in case a server died randomly or some other nonsense.

    Good idea. I have been looking into how to only preload the modules needed for individual team workflows, so hopefully that will be fruitful. Just didn't know if there was an "easy" shortcut.

    Definitely it would be best if servers never had to be restarted, but I guess I was trying to save people time in case servers died or they suddenly someone wanted to start up a server to demo or check something

    It takes 15-20 minutes to start the servers. I'll try to do some profiling and see where the hot pockets are. I know that a non-preloaded server takes more like one minute and I know that static content and Perl modules are preloaded so I figured I'd ask you guys about the Perl half and try to do the front-end part myself because it's less abstract than whatever Perl does.

      It takes 15-20 minutes to start the servers. I'll try to do some profiling and see where the hot pockets are. I know that a non-preloaded server takes more like one minute

      This sounds like you have bigger problems. Neither of those delays (the 15 minute nor the 1 minute) is reasonable - as I said above they should be measurable in seconds on modern OS and hardware. If I were you I would increase the LogLevel in apache all the way up and see if that explains what the cause of the delay is. Otherwise, check the server for other problems: swapping could easily be one but also maybe bad disks or even a network misconfiguration as my anonymous brother suggested.

      Good luck with your diagnosis.

      It takes 15-20 minutes to start the servers. I'll try to do some profiling and see where the hot pockets are. I know that a non-preloaded server takes more like one minute and I know that static content and Perl modules are preloaded so I figured I'd ask you guys about the Perl half and try to do the front-end part myself because it's less abstract than whatever Perl does.

      Hi, that sounds excessive, like network lag resolving hostnames or some such, I'm real curious to see what you come up with

      on my old laptop I can load 6086 modules in 86 seconds