hanzo2001 commented on issue #673: Incredible use of RAM even on small 
example/rest-json
URL: https://github.com/apache/camel-quarkus/issues/673#issuecomment-580240402
 
 
   I swapped the `camel-jackson`  for `camel-quarkus-jackson` and the results 
are as follows:
   ```
   [rest-json-0.0.1-runner:7655]    classlist:   8,194.51 ms
   11:19:40,433 INFO  [com.sun.xml.bin.v2.run.ref.opt.AccessorInjector] The 
optimized code generation is disabled
   [rest-json-0.0.1-runner:7655]        (cap):     903.63 ms
   [rest-json-0.0.1-runner:7655]        setup:   3,103.63 ms
   11:19:47,626 INFO  [org.jbo.threads] JBoss Threads version 3.0.0.Final
   [rest-json-0.0.1-runner:7655]   (typeflow): 231,698.99 ms
   [rest-json-0.0.1-runner:7655]    (objects): 100,311.45 ms
   [rest-json-0.0.1-runner:7655]   (features):   3,706.09 ms
   [rest-json-0.0.1-runner:7655]     analysis: 343,944.08 ms
   [rest-json-0.0.1-runner:7655]     (clinit):   2,825.57 ms
   [rest-json-0.0.1-runner:7655]     universe:   8,777.28 ms
   [rest-json-0.0.1-runner:7655]      (parse):  18,308.30 ms
   [rest-json-0.0.1-runner:7655]     (inline):  17,601.61 ms
   [rest-json-0.0.1-runner:7655]    (compile):  97,148.54 ms
   [rest-json-0.0.1-runner:7655]      compile: 137,709.46 ms
   [rest-json-0.0.1-runner:7655]        image:   7,721.02 ms
   [rest-json-0.0.1-runner:7655]        write:   3,682.59 ms
   [rest-json-0.0.1-runner:7655]      [total]: 514,278.63 ms
   ```
   Now it took more than twice as much time but I believe that increase might 
be due to the OS swapping pages into the harddrive (1.2GB). This did not occur 
in the previous test.
   
   I then tested with the memory limiting parameter `-Dnative-image.xmx=8g`
   
   ```
   [rest-json-0.0.1-runner:8017]    classlist:  10,580.43 ms
   11:31:57,468 INFO  [com.sun.xml.bin.v2.run.ref.opt.AccessorInjector] The 
optimized code generation is disabled
   [rest-json-0.0.1-runner:8017]        (cap):   2,433.17 ms
   [rest-json-0.0.1-runner:8017]        setup:   5,180.72 ms
   11:32:06,626 INFO  [org.jbo.threads] JBoss Threads version 3.0.0.Final
   [rest-json-0.0.1-runner:8017]   (typeflow): 454,400.69 ms
   [rest-json-0.0.1-runner:8017]    (objects): 115,100.61 ms
   [rest-json-0.0.1-runner:8017]   (features):   3,107.69 ms
   [rest-json-0.0.1-runner:8017]     analysis: 580,229.01 ms
   [rest-json-0.0.1-runner:8017]     (clinit):   2,489.84 ms
   [rest-json-0.0.1-runner:8017]     universe:   8,472.11 ms
   [rest-json-0.0.1-runner:8017]      (parse):  19,024.18 ms
   [rest-json-0.0.1-runner:8017]     (inline):  15,650.93 ms
   [rest-json-0.0.1-runner:8017]    (compile):  93,101.09 ms
   [rest-json-0.0.1-runner:8017]      compile: 131,778.66 ms
   [rest-json-0.0.1-runner:8017]        image:   7,701.51 ms
   [rest-json-0.0.1-runner:8017]        write:   1,025.10 ms
   [rest-json-0.0.1-runner:8017]      [total]: 746,234.41 ms
   ```
   
   Now it takes more than triple the amount of time but it does not freeze up 
my system entirely (CPU 100% all the time but I think this is a good thing).
   
   Thank you for helping me out. I believe this to be a non-issue so I will 
close it.
   
   I'll try to push an update fixing the example so that it uses a 
quarkus-based dependency.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to