Expected memory limit 64MB
Base -> 351448 (0.34 MB)
Clear -> 363736 (0.35 MB)
1000 x 10000 chars -> 10366184 (9.89 MB) [15.5 percent]
Clear -> 363776 (0.35 MB)
1500 x 10000 chars -> 15367440 (14.66 MB) [22.9 percent]
Clear -> 363776 (0.35 MB)
2000 x 10000 chars -> 20364560 (19.42 MB) [30.3 percent]
Clear -> 363776 (0.35 MB)
2500 x 10000 chars -> 25365776 (24.19 MB) [37.8 percent]
Clear -> 363776 (0.35 MB)
3000 x 10000 chars -> 30366992 (28.96 MB) [45.3 percent]
Clear -> 363776 (0.35 MB)
3500 x 10000 chars -> 35364112 (33.73 MB) [52.7 percent]
Clear -> 363776 (0.35 MB)
4000 x 10000 chars -> 40365328 (38.5 MB) [60.2 percent]
Clear -> 363776 (0.35 MB)
4500 x 10000 chars -> 45366544 (43.26 MB) [67.6 percent]
Clear -> 363776 (0.35 MB)
5000 x 10000 chars -> 50367760 (48.03 MB) [75 percent]
Clear -> 363776 (0.35 MB)
5500 x 10000 chars -> 55364880 (52.8 MB) [82.5 percent]
Clear -> 363776 (0.35 MB)
6000 x 10000 chars -> 60366096 (57.57 MB) [90 percent]
Clear -> 363776 (0.35 MB)
6500 x 10000 chars -> 65367312 (62.34 MB) [97.4 percent]
If you can see this, the server can allocate something close to 64mb