penthouse icon indicating copy to clipboard operation
penthouse copied to clipboard

not finishing in Docker environment

Open lexdubyna opened this issue 2 years ago • 1 comments

Hello. I'm trying to use rollup-critical-plugin (basic setup) and standalone penthouse and it seems that the process hangs in the Docker environment (node:14.19.0) In both cases with logging I see the same result

  penthouse:browser no browser instance, launching new browser.. +0ms
  penthouse:browser browser ready +215ms
  penthouse call generateCriticalCssWrapped +0ms
  penthouse:core Penthouse core start +0ms
  penthouse:core parse ast START +1ms
  penthouse:core parse ast DONE (with 0 errors) +30ms
  penthouse:preformatting:nonMatchingMediaQueryRemover BEFORE +0ms
  penthouse:preformatting:nonMatchingMediaQueryRemover matchConfig: {
  penthouse:preformatting:nonMatchingMediaQueryRemover   "type": "screen",
  penthouse:preformatting:nonMatchingMediaQueryRemover   "width": "1300px",
  penthouse:preformatting:nonMatchingMediaQueryRemover   "height": "900px"
  penthouse:preformatting:nonMatchingMediaQueryRemover }
  penthouse:preformatting:nonMatchingMediaQueryRemover keepLargerMediaQueries: false +0ms
  penthouse:preformatting:nonMatchingMediaQueryRemover KEEP: (all and (max-width:768px)),  +3ms
  penthouse:core stripped out non matching media queries +4ms
  penthouse:core cleanupAndExit +30s

Also CPU usage of Docker virtual machine is almost 70% (with my 6 cores / 12 threads Intel processor). When I stop the container, it's back to normal. Please help.

lexdubyna avatar Mar 07 '22 11:03 lexdubyna

Hi, I'm not familiar at all with this set up, but from the debug logs you posted it seems like the page you were trying to generate critical css for never loaded. Do you have the same behavior if you try to generate critical css for another website?

pocketjoso avatar Mar 26 '22 12:03 pocketjoso