Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When running with DCI_TESTGROUPS="--all" the actual writing of tests fails because of:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4194304 bytes) in /var/www/core/scripts/run-tests.sh on line 1142
Guess we have to increase the PHP memory_limit from currently 256MB to 384MB or even more.
Comment | File | Size | Author |
---|---|---|---|
#11 | drupal-test-memory-2347493-11.patch | 539 bytes | Sutharsan |
#10 | 2347493-10-results.csv_.txt | 351 bytes | Sutharsan |
#10 | 2347493-10-graph.png | 45.91 KB | Sutharsan |
Comments
Comment #1
bzrudi71 CreditAttribution: bzrudi71 commentedJust startet new test with php memory_limit adjusted to 384MB, let's see... However, even if it works, I'm not to happy with it. run_tests.sh has some optimization potential :-)
Comment #2
ricardoamaro CreditAttribution: ricardoamaro commentedThe actual running testbot has:
I'll add this requirement into the new testbot and remake the bootable testbot
Comment #3
ricardoamaro CreditAttribution: ricardoamaro commentedComment #5
ricardoamaro CreditAttribution: ricardoamaro commentedComment #6
ricardoamaro CreditAttribution: ricardoamaro commentedPlease reopen if you see that the issue presists
Comment #7
bzrudi71 CreditAttribution: bzrudi71 commentedI'm sorry ricardo but...
Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 81 bytes) in /var/www/core/scripts/run-tests.sh on line 1142
Comment #8
ricardoamaro CreditAttribution: ricardoamaro commentedreally? o_O
Can you try and rebuild your containers with a new checkout from drupalci_testbot project?
See http://coreresults.drupal-pt.org/ wich is running the latest tests. ;)
Comment #9
ricardoamaro CreditAttribution: ricardoamaro commentedOk, this is still happening.
http://coreresults.drupal-pt.org/node/37
Comment #10
Sutharsan CreditAttribution: Sutharsan commentedI investigated the relation between the chunk size and the memory usage. By making a small adjustment we can significantly reduce the memory usage. In the below figure you can find the relation between chunk size, memory usage and execution time. To be on the safe site I suggest to use a chunk size of 350. Test results may vary depending on hardware and server configuration.
The test script can be found at: https://gist.github.com/Sutharsan/f265a1b8536bb686dd39
Comment #11
Sutharsan CreditAttribution: Sutharsan commentedChanging the chunk size to 350 items.
Comment #12
ricardoamaro CreditAttribution: ricardoamaro commentedTesting it manually now
Comment #13
bzrudi71 CreditAttribution: bzrudi71 commentedVery interesting results! Thank's a lot @Sutharsan
Comment #14
ricardoamaro CreditAttribution: ricardoamaro commentedThis is tested locally 2 times and RTBC
Comment #15
ricardoamaro CreditAttribution: ricardoamaro commentedComment #16
webchickCommitted and pushed to 8.x, along with a small documentation piece to explain what this is for, since this is the second time in 4 days we had to touch it. :D