http://cgit.drupalcode.org/sandbox-rvilar-1313302/ tree/modules/features/openplaza_default_content/openplaza_default_content.features.content.inc

Apparently features thinks(thought?) its a fine idea to go ahead and embed binary data into php include files to deploy content.

The python syntax highlighter doesnt know how to handle this, so it just heats up the CPUS on util to 99%.

Not sure if we should
A. look for binary data in .inc files and not syntax highlight,
B. not host .inc files with embedded binary data?
C. setup a sheriff script that terminates syntax highlighters that have been misbehaving?

Comments

drumm’s picture

I'd recommend C, that's what I've been effectively doing. (B wouldn't work since we can't rewrite this sort of thing out of the history of all Git repos we host.)

I'd consider this to be a bug in Pygments, maybe https://bitbucket.org/birkenfeld/pygments-main/issue/946/pygments-hangs-... would resolve it.

killes@www.drop.org’s picture

Issue summary: View changes

Breaking the link

drumm’s picture

Processes to kill:

$ sudo ps -F --pid "$(sudo pgrep -d, -u apache python2)"

Problems with this:

  • It should only select processes that have been running for a long time, maybe any over 5 seconds.
  • If there is nothing matching pgrep, then ps is not happy.

When that's all good, we can go ahead and set up the command to kill those processes.

Mixologic’s picture

Issue tags: +Git Repository Viewer
mlhess’s picture

Status: Active » Fixed

This issue has been fixed now that we are on a recent version of centos.

Mixologic’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.