1Add these to the START and END of texmf.cnf
2   /usr/local/share/texmf/web2c/texmf.cnf
3
4main_memory = 1100000
5param_size = 1500
6stack_size = 1500
7hash_extra = 25000
8string_vacancies = 45000
9pool_free = 47500 
10nest_size = 500
11save_size = 5000
12pool_size = 500000
13max_strings = 55000
14font_mem_size= 400000
15
16