Wiris

Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • MathFlow
                        • MathFlow SDK for Developers
                        • Composition (Java and Windows)
                        • Composition (Java and Windows)

                        Java runtime options

                        Reading time: 1min

                        Headless support

                        The composition components of the SDK can be used in an environment without a windows server by running Java in headless mode. This requires a Java version of 1.4 or later and the command line switch

                        -Djava.awt.headless=true

                        at the invocation of the java command.

                        Memory and large images

                        When generating very large images, it is necessary to increase the heap size to allow for greater memory usage if the following message appears:

                        "The image is too large, please increase the Java heap size."

                        It is possible to increase the Java heap size by modifying these runtime parameters:

                        java -Xms<initial heap size> -Xmx<maximum heap size>

                        Default values:

                        java -Xms32m -Xmx128m

                        For example:

                        java -Xms128m -Xmx256m or java -Xms128m -Xmx512m

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • Math accessibility
                        • Debugging (what to do if it isn't working)

                        Java runtime options

                        Headless support Memory and large images

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand