Skip to content

Large increase in memory usage when upgrading to Turnip 4.4.0 #251

@addersuk

Description

@addersuk

In a private repo we have seen a massive increase in memory usage of our app that is using turnip since we upgraded to Turnip 4.4.0

Before the upgrade we run two ruby threads on our CI server

Tasks: 144 total,   3 running, 141 sleeping,   0 stopped,   0 zombie
%Cpu(s): 98.5 us,  1.5 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3924.0 total,    139.2 free,   1747.1 used,   2037.7 buff/cache
MiB Swap:   4340.0 total,   4336.0 free,      4.0 used.   1893.9 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   4788 **+  20   0  578064 541888  13236 R  99.0  13.5   0:52.55 bundle
   4787 **+  20   0  783668 747956  13192 R  98.3  18.6   0:52.12 bundle

After the upgrade to 4.4.0 with two threads

top - 16:39:42 up 36 min,  1 user,  load average: 2.87, 2.86, 2.41
Tasks: 133 total,   6 running, 127 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.6 us, 22.5 sy,  0.0 ni, 12.4 id, 48.9 wa,  0.0 hi,  4.4 si,  6.1 st
MiB Mem :   3924.0 total,    108.0 free,   3730.1 used,     85.9 buff/cache
MiB Swap:   4340.0 total,     47.3 free,   4292.7 used.     33.6 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   6232 **+  20   0 3741972   1.7g   3132 R  18.7  43.7  11:20.64 bundle
   6231 **+  20   0 3914640   1.7g   1136 R  15.7  44.4  11:34.07 bundle

I'll try and create a test case to illustrate this as it is happening in a private repo that makes extensive usage of Gherkin feature files.

We suspect this is due to the move to cuke_modeler

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions