You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "k.prasad" <pr...@hotmail.com> on 2012/05/01 06:27:39 UTC

cpu usage 100% when i am adding content to node

hi All,

cpu usage goes 100% when i am adding content to node,i this in will checkout
the node.

please suggest me.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/cpu-usage-100-when-i-am-adding-content-to-node-tp4600078.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: cpu usage 100% when i am adding content to node

Posted by "k.prasad" <pr...@hotmail.com>.
cpu goes maximum at


node.setProperty("jcr:data",session.getValueFactory().createBinary(fileinputstream));

and my search configuration is 

 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            
            
   </SearchIndex>

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/cpu-usage-100-when-i-am-adding-content-to-node-tp4600078p4602675.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: cpu usage 100% when i am adding content to node

Posted by "k.prasad" <pr...@hotmail.com>.
Hi,

how to disable the full-text indexing.


--
View this message in context: http://jackrabbit.510166.n4.nabble.com/cpu-usage-100-when-i-am-adding-content-to-node-tp4600078p4605486.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: cpu usage 100% when i am adding content to node

Posted by Thomas Mueller <mu...@adobe.com>.
Hi,

>Another likely CPU consumer is full text indexing, especially if
>you're dealing with a complex PDF or Office document.

Yes, I forgot. By the way, if you don't need the full-text index, you can
disable it.

Regards,
Thomas


Re: cpu usage 100% when i am adding content to node

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Wed, May 2, 2012 at 8:59 AM, Thomas Mueller <mu...@adobe.com> wrote:
> I guess the bottleneck is calculating the content hash (SHA-1 message
> digest). That's expected. But maybe it's something else.

Another likely CPU consumer is full text indexing, especially if
you're dealing with a complex PDF or Office document.

The SHA-1 computation time should be a fraction of the IO time needed
to copy a binary, whereas full text extraction can at times take much
longer than the plain copy.

BR,

Jukka Zitting

Re: cpu usage 100% when i am adding content to node

Posted by Thomas Mueller <mu...@adobe.com>.
Hi,

I suggest to check why it's using 100% cpu. A simple way to do that is to
use 

    jps -l (to get the process id)

Then get a few full thread dumps using

    jstack -l <pid>

Then check in the full thread dump what's going on.

I guess the bottleneck is calculating the content hash (SHA-1 message
digest). That's expected. But maybe it's something else.

Regards,
Thomas



On 5/1/12 6:27 AM, "k.prasad" <pr...@hotmail.com> wrote:

>hi All,
>
>cpu usage goes 100% when i am adding content to node,i this in will
>checkout
>the node.
>
>please suggest me.
>
>--
>View this message in context:
>http://jackrabbit.510166.n4.nabble.com/cpu-usage-100-when-i-am-adding-cont
>ent-to-node-tp4600078.html
>Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.