Hi Shashika,

Were you able to try with a different Data service definition?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Tue, Dec 16, 2014 at 1:50 PM, Chamila De Alwis <chami...@wso2.com> wrote:
>
> Hi,
>
> Furthermore I also tried analyzing the JVM using Java Mission Control, but
> it also get stuck when the OOM occurs. The CPU usage is very high.
>
>
> ​
> I took a brief look at the heap dump using jvisualvm. And as far as I
> understand, the following thread is the one producing the OOM error, when
> iterating a linked list.
>
> "NioBlockingSelector.BlockPoller-1" daemon prio=5 tid=62 RUNNABLE
> at java.lang.OutOfMemoryError.<init>(OutOfMemoryError.java:25)
> at java.util.HashMap.newKeyIterator(HashMap.java:840)
>    Local Variable: java.util.HashMap#416322
> at java.util.HashMap$KeySet.iterator(HashMap.java:874)
>    Local Variable: java.util.HashMap$KeySet#291
> at java.util.HashSet.iterator(HashSet.java:153)
> at sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java:127)
>    Local Variable: java.util.HashSet#745
> at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:69)
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>    Local Variable: java.util.Collections$UnmodifiableSet#9
>    Local Variable: sun.nio.ch.Util$2#6
> at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>    Local Variable: sun.nio.ch.EPollSelectorImpl#6
> at
> org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller.run(NioBlockingSelector.java:327)
>
>
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, Dec 16, 2014 at 1:29 PM, Chamila De Alwis <chami...@wso2.com>
> wrote:
>>
>> Hi Shashika,
>>
>> I am also coming across this issue. When I change the message formatter I
>> can execute the PUT operation successfully. It seems this is an issue
>> related to the Gson message builder.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Tue, Dec 16, 2014 at 11:16 AM, Chamila De Alwis <chami...@wso2.com>
>> wrote:
>>>
>>> Hi Shashika,
>>>
>>> What are the message formatter and builder libraries that you've enabled
>>> for application/json type?
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Tue, Dec 16, 2014 at 9:15 AM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>>
>>>> Hi Udara,
>>>> No when sending from the try it tool it works fine
>>>>
>>>> Thank you
>>>>
>>>> On Tue, Dec 16, 2014 at 7:28 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Do you get the same behavior when you so the same put method using
>>>>> tryit
>>>>>
>>>>>
>>>>>
>>>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>>>> On Dec 16, 2014 5:54 AM, "Danushka Fernando" <danush...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> I think best way to identify the root cause is to have a heap dump
>>>>>> and analyze it.
>>>>>>
>>>>>> Thanks & Regards
>>>>>> Danushka Fernando
>>>>>> Software Engineer
>>>>>> WSO2 inc. http://wso2.com/
>>>>>> Mobile : +94716332729
>>>>>>
>>>>>> On Mon, Dec 15, 2014 at 11:14 PM, Chamila De Alwis <chami...@wso2.com
>>>>>> > wrote:
>>>>>>>
>>>>>>> Hi Shashika,
>>>>>>>
>>>>>>> Before the OutOfMemoryError, do you get any errors in the carbon
>>>>>>> log? Can you enable DEBUG level and find out?
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>> Chamila de Alwis
>>>>>>> Software Engineer | WSO2 | +94772207163
>>>>>>> Blog: code.chamiladealwis.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka <
>>>>>>> shashi...@wso2.com> wrote:
>>>>>>>
>>>>>>>> HI,
>>>>>>>> I was trying to send some JSON data to my data base through DSS. i
>>>>>>>> tried this [1] curl command to send the data, but it doesnt update my
>>>>>>>> database and gave a java.lang.OutOfMemoryError on DSS server after some
>>>>>>>> time.
>>>>>>>> Here with i have attached my .dbs file as well.
>>>>>>>> I tried this on DSS 3.2.2 and the same command works fine in the
>>>>>>>> DSS 3.2.1
>>>>>>>>
>>>>>>>> [1] curl -X PUT
>>>>>>>> -d'{"_putaddbird":{"name":"ffff","color":"green","weight":14}}' -H
>>>>>>>> 'Content-Type:application/json'
>>>>>>>> http://10.100.5.188:9763/services/uactivitydb/addbird
>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2F10.100.5.188%3A9763%2Fservices%2Fuactivitydb%2Faddbird&sa=D&sntz=1&usg=AFQjCNEiQ8_5pUiZLSdPIT0B7Yh3i1z8RQ>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Shashika Prabath Karunatilaka,
>>>>>>>> Software Engineer,
>>>>>>>> WSO2, Inc: http://wso2.com/
>>>>>>>> mobile : +94 77 7487792
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>
>>>> --
>>>> Shashika Prabath Karunatilaka,
>>>> Software Engineer,
>>>> WSO2, Inc: http://wso2.com/
>>>> mobile : +94 77 7487792
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to