Hi,
At a guess this is related to JNA callbacks - see eg. here -
https://groups.google.com/d/topic/gstreamer-java/DXojRl6R2CM/discussion
If you're using JNA 3.4.0+ try adding Native.detach(false); in one of
your listeners and see if this fixes the issue. To fix properly this
really requires the thread to be detached on exit, which is automated
in JNA 3.5.0. However, I have a feeling there are Structure mapping
issues between GStreamer-Java and JNA 3.5.0 at the moment?
Best wishes,
Neil
On 5 November 2012 14:44, saaleb <
ybalt...@gmail.com> wrote:
>
> Hi,
>
> During load test of GStreamer-java-based application I found a lot of short-lived java thread (about 30) that occurs on every GST job start. In case of one-two simultaneous processing it have no effect, but in case of ~100 jobs it have a huge overhead on threads creation(context switching and so on).
>
> Typical call tree of this thread:
>
> 100,0% - 3 040 µs - 1 inv. com.sun.jna.CallbackReference$DefaultCallbackProxy.callback
> 78,3% - 2 381 µs - 2 inv. org.gstreamer.lowlevel.GTypeMapper$3.fromNative
> 76,6% - 2 329 µs - 2 inv. org.gstreamer.lowlevel.NativeObject.objectFor
> 0,4% - 11 µs - 2 inv. com.sun.jna.FromNativeContext.getTargetType
> 21,2% - 643 µs - 1 inv. org.gstreamer.Bus$2.callback
> 11,0% - 334 µs - 1 inv. org.gstreamer.$Proxy4.gst_mini_object_unref
> 7,1% - 216 µs - 1 inv. java.util.concurrent.Executor.execute
> 0,4% - 13 µs - 1 inv. org.gstreamer.Gst.getExecutor
> 0,2% - 7 µs - 1 inv. org.gstreamer.Bus.access$2
> 0,2% - 5 µs - 1 inv. org.gstreamer.BusSyncReply.intValue
> 0,2% - 5 µs - 1 inv. org.gstreamer.Bus$2$1.<init>
> 0,2% - 5 µs - 1 inv. org.gstreamer.Bus.access$0
> 0,1% - 4 µs - 1 inv. org.gstreamer.Bus$1.syncMessage
>
> Have anybody collides with such situation and how can I improve a performance of GStreamer-java part?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/gstreamer-java/-/ZwOPOK3bMiYJ.
> To post to this group, send email to
gstream...@googlegroups.com.
> To unsubscribe from this group, send email to
gstreamer-jav...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/gstreamer-java?hl=en.
--
Neil C Smith
Artist : Technologist : Adviser
http://neilcsmith.net
Praxis LIVE - open-source, graphical environment for rapid development
of intermedia performance tools, projections and interactive spaces -
http://code.google.com/p/praxis
OpenEye - specialist web solutions for the cultural, education,
charitable and local government sectors -
http://openeye.info