[texhax] Error: TeX capacity exceeded

Reinhard Kotucha reinhard.kotucha at web.de
Wed Mar 17 18:55:47 CET 2010


On 16 March 2010 Slingerland, Philip C wrote:

 > I am a Fedora 12 user running texlive 2007.  I have added the tikz
 > and pgfplot packages also.
 > 
 > I get this error when I run latex on one of my .tex files:
 > ! TeX capacity exceeded, sorry [main memory size=1500000]
 > 
 > I know that this is not due to a syntax error.  I am making a plot
 > using pgfplot which contains thousands of points.  When I include
 > fewer points, the .dvi file is created without any errors,
 > therefore the number of points is definitely the cause of the
 > problem.

Sure, pgfplots needs a lot of memory.

 > To fix this I tried changing texmf.cnf in /usr/share/texmf/web2c/.
 > I changed: main_memory = 1500000 to main_memory = 3000000.

3000000 is the default in TL 2009.  You can increase it even more.
There are some comments in texmf.cnf.

If you have many of such plots you probably have to increase the
string pool too.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list