Skip to Content
avatar image
Former Member

Java mapping underperformance?

Dear experts,

Iu2019ve small java mapping that was developed following a how-to that uses dom4j classes. The mapping is retrieving the expected result, however every time I run a test at the Operation Mapping object several dom4j classes are loaded before the mapping (checked at the mapping log) and it takes too long (more than 4000 milliseconds) to map a couple of fields.

Questions:

1. At runtime are these classes loaded every time a mapping is called?

2. Does the test environment have the same performance of the runtime environment?

I'm just wondering if I need to rework the mapping to make it more fast or this behavior of loading classes only occurs at test environment and no rework is necessary.

Thanks in advance,

Jorge

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 03, 2011 at 03:47 PM

    >> At runtime are these classes loaded every time a mapping is called?

    Yes, It will load all the required classes during runtime.

    >>2. Does the test environment have the same performance of the runtime environment?

    Are you referring your test box with production Box? Normally production server has better in memory and powerful processor than test box. If so, in production you might not see 4000 milliseconds. certainly lesser than this value.

    You could certainly rework on it. Jdk 1.6 provides XML API directly. You dont need to import dom4j open source jars... But performance improvement is not just using external apis. Unless we see the logic written in java mapping, its hard to say where the performance goes bad.

    Hope answered your question.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2011 at 10:10 PM

    done! Thanks 😉

    Jorge

    Add comment
    10|10000 characters needed characters exceeded