We have launched a free Basic Kubernetes Course. Click here to enrol now! Kubernetes is a container orchestration platform used by enterprises worldwide and Kubernetes developers are in high demand!
In certain cases, Woodstox may need to process large XML documents in low memory environment. In such a scenario, Woodstox can be configured to work optimally under low memory condition.
In this article, we shall see how to configure woodstox for low memory usage.
Create employee.xml as shown below.
Create TestConfigurationForLowMemory class as shown below.
The configuration for low memory usage is defined using
(see line 19 below). This shall optimize Woodstox parser so that memory usage is optimized.
The output of the program is shown below: