Hi Fred.
Many thanks for your response.
Validation is chunks using iterator is what I precisely opted and the schema validation took around 12 minutes with 2 GB memory allocation to IS server.Another problem that poped out after validating this huge document is IS memory. It reached to 90% after the processing was over and remnained at this peak for quite a long time while nothing was being processed on server.IS beacame non respoinsive and I had to kill the instance.
I took a Heap dump and noticed following objects in the memory
Size Class Address
3,521,448 [56] 4 com/wm/lang/xml/TextNode 0x50155908
3,375,880 [72] 7 com/wm/lang/xml/ElementNode 0x50194688
3,023,152 [72] 7 com/wm/lang/xml/ElementNode 0x500e37e0
2,785,008 [72] 7 com/wm/lang/xml/ElementNode 0x5018b2d8
2,700,544 [72] 7 com/wm/lang/xml/ElementNode 0x5014e7f8
2,490,232 [72] 7 com/wm/lang/xml/ElementNode 0x500f3920
2,217,208 [72] 8 com/wm/lang/xml/ElementNode 0x501a94e0
1,977,920 [72] 7 com/wm/lang/xml/ElementNode 0x501764f0
1,872,040 [72] 7 com/wm/lang/xml/ElementNode 0x501adfd0
1,750,152 [72] 7 com/wm/lang/xml/ElementNode 0x50300358
1,710,856 [72] 7 com/wm/lang/xml/ElementNode 0x5018c6b0
1,557,416 [72] 7 com/wm/lang/xml/ElementNode 0x50300310
1,526,728 [72] 7 com/wm/lang/xml/ElementNode 0x501ace48
1,373,288 [72] 7 com/wm/lang/xml/ElementNode 0x5030b0e8
1,357,944 [72] 7 com/wm/lang/xml/ElementNode 0x501b0d48
1,212,176 [72] 7 com/wm/lang/xml/ElementNode 0x50321cc8
1,204,504 [72] 7 com/wm/lang/xml/ElementNode 0x501b2750
1,081,752 [72] 7 com/wm/lang/xml/ElementNode 0x50321e00
1,075,936 [56] 2 com/wm/lang/xml/TextNode 0x50176538
In my process flow I am dropping all the objects and after each validation iteration, still it looks like all the objects are not being cleaned up and causing memory issues.I manually executed the GC but that didn’t help either
Secondly, 12 minutes of parsing time is till a quite long time as compared to what my java colleagues show a 80 Sec response time for a complete 400 MB validation using SAX parse factory in standalone java program.
See attached html snapshot of my service.
and thanks again.
Ade