Splitting an xml file is much slower on Linux than Windows
Issue
- Reading a 500MB xml file and using XMLEventReader/XMLEventWriter to split into files, Windows takes 10 seconds to process but Linux is taking 20 minutes.
- Linux is writing 1 character at a time to disk.
Environment
- Java
- 8
- 11
- 17
- Sun Java Streaming XML Parser(SJSXP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.