You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2019/05/09 06:04:00 UTC
[jira] [Created] (RANGER-2420) Ranger spends 36% of CPU in
ObjectMapper
Todd Lipcon created RANGER-2420:
-----------------------------------
Summary: Ranger spends 36% of CPU in ObjectMapper
Key: RANGER-2420
URL: https://issues.apache.org/jira/browse/RANGER-2420
Project: Ranger
Issue Type: Improvement
Components: Ranger
Reporter: Todd Lipcon
Ranger uses ObjectMapper to convert to/from JSON. In a profile of a workload (an Impala authorization test) I see that 36% of the ranger CPU is spent in these functions. 26% of total CPU is in the '_findRootDeserializer' method, which gets cached if a type is deserialized multiple times. However, the caching is only effective if the ObjectMapper is reused. JSONUtil appears to create a new ObjectMapper on every call, which defeats the caching.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)