Screenshare issues

20 views
Skip to first unread message

Nussbaum-Jones, Nina

unread,
Oct 18, 2010, 1:04:30 PM10/18/10
to openwon...@googlegroups.com

Had a screen share on system 1, and was viewing the share from a webcam viewer on system 2.  At some point, the webserver did the out of memory thing, and the log excerpt appears below.  When I tried to generate a jstack, it had an error saying that jstack couldn’t connect to a channel to talk to it.  Here’s the traceback with a bit of context before/after…. Hopefully this is somewhat informative?

 

The one thing that puzzles me is that I’ve had 5 screen shares in world at the same time, and no failures.  This time it was just 1 avatar per system.  So I don’t know what is causing it.

--

 

 

Oct 18, 2010 9:59:15 AM org.jdesktop.wonderland.web.asset.resources.ModuleRepositoryResource getModuleRepository

INFO: Sending this server as fallback: http://129.204.176.36:8080/webdav/content/modules/installed/audiomanager

Oct 18, 2010 9:59:27 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

WARNING: Fetching checksums for module avatarbaseart part null

Oct 18, 2010 9:59:27 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module avatarbaseart part art in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modules

/avatarbaseart/art/checksums.xml

Oct 18, 2010 9:59:27 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part art with size 882

Oct 18, 2010 9:59:27 AM org.jdesktop.wonderland.web.asset.resources.ModuleRepositoryResource getModuleRepository

INFO: A repository.xml file does not exist for module: avatarbaseart

Oct 18, 2010 9:59:27 AM org.jdesktop.wonderland.web.asset.resources.ModuleRepositoryResource getModuleRepository

INFO: Sending this server as fallback: http://129.204.176.36:8080/webdav/content/modules/installed/avatarbaseart

Oct 18, 2010 10:37:41 AM org.jdesktop.wonderland.modules.screenshare.web.ScreenShareAtmosphereHandler onStateChange

WARNING: Error writing

org.apache.catalina.connector.ClientAbortException: java.nio.channels.ClosedChannelException

        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:382)

        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:351)

        at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:176)

        at java.io.DataOutputStream.flush(DataOutputStream.java:106)

        at org.jdesktop.wonderland.modules.screenshare.web.ScreenShareAtmosphereHandler.onStateChange(ScreenShareAtmosphereHandler

.java:140)

        at org.atmosphere.cpr.DefaultBroadcaster.broadcast(DefaultBroadcaster.java:327)

        at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:301)

        at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:263)

        at org.atmosphere.cpr.DefaultBroadcaster$1.run(DefaultBroadcaster.java:212)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

        at java.lang.Thread.run(Thread.java:619)

Caused by: java.nio.channels.ClosedChannelException

        at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:126)

        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:324)

        at com.sun.grizzly.async.TCPAsyncQueueWriter.doWrite(TCPAsyncQueueWriter.java:88)

        at com.sun.grizzly.async.AbstractAsyncQueueWriter.doWrite(AbstractAsyncQueueWriter.java:430)

        at com.sun.grizzly.async.AbstractAsyncQueueWriter.write(AbstractAsyncQueueWriter.java:182)

        at com.sun.grizzly.async.TCPAsyncQueueWriter.write(TCPAsyncQueueWriter.java:77)

        at com.sun.grizzly.async.AbstractAsyncQueueWriter.write(AbstractAsyncQueueWriter.java:110)

        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:324)

        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392)

        at com.sun.grizzly.http.SocketChannelOutputBuffer.flush(SocketChannelOutputBuffer.java:370)

        at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1174)

        at com.sun.grizzly.tcp.Response.action(Response.java:266)

        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:378)

        ... 14 more

Oct 18, 2010 10:50:02 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

WARNING: Fetching checksums for module textchat part null

Oct 18, 2010 10:50:02 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module textchat part client in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modules/t

extchat/client/checksums.xml

Oct 18, 2010 10:50:02 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part client with size 1

Oct 18, 2010 10:50:02 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module textchat part server in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modules/t

extchat/server/checksums.xml

Oct 18, 2010 10:50:02 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part server with size 1

Oct 18, 2010 11:02:43 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:45 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:46 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:47 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:48 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:52 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:02:54 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:03:32 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:03:32 AM org.apache.catalina.core.StandardWrapperValve log

WARNING: StandardWrapperValve[JnlpDownloadServlet]: PWC1406: Servlet.service() for servlet JnlpDownloadServlet threw exception

java.lang.OutOfMemoryError: Java heap space

 

Oct 18, 2010 11:40:52 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

WARNING: Fetching checksums for module webcamviewer part null

Oct 18, 2010 11:40:52 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module webcamviewer part server in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modul

es/webcamviewer/server/checksums.xml

Oct 18, 2010 11:40:52 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part server with size 2

Oct 18, 2010 11:40:52 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module webcamviewer part client in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modul

es/webcamviewer/client/checksums.xml

Oct 18, 2010 11:40:52 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part client with size 2

Oct 18, 2010 11:40:54 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

WARNING: Fetching checksums for module avatarbase part null

Oct 18, 2010 11:40:54 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module avatarbase part client in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modules

/avatarbase/client/checksums.xml

Oct 18, 2010 11:40:55 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part client with size 2

Oct 18, 2010 11:40:55 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module avatarbase part server in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/modules

/avatarbase/server/checksums.xml

Oct 18, 2010 11:40:55 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part server with size 1

Oct 18, 2010 11:46:58 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

WARNING: Fetching checksums for module security-groups part null

Oct 18, 2010 11:46:58 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module security-groups part server in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/mo

dules/security-groups/server/checksums.xml

Oct 18, 2010 11:46:58 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part server with size 1

Oct 18, 2010 11:46:58 AM org.jdesktop.wonderland.web.checksums.modules.ModuleChecksumFactory getChecksumList

INFO: Fetching checksum for module security-groups part client in /home/wluser/.wonderland-server/0.5-dev/run/content/checksums/mo

dules/security-groups/client/checksums.xml

Oct 18, 2010 11:46:58 AM org.jdesktop.wonderland.web.checksums.resources.GetModuleChecksumsResource getChecksums

INFO: Adding found part client with size 1

Jonathan Kaplan

unread,
Oct 18, 2010, 8:50:45 PM10/18/10
to openwon...@googlegroups.com
Nina,

I think the problem in the screen sharer is with how data is queued up in the web server. It seems like it just queues data indefinitely, so if one client gets behind, it can cause the entire web server to run out of memory. So if everyone is keeping up, five screen sharers may work fine. But if one client is connected over a slow link, a single screen sharer could run the web server out of memory.

Nussbaum-Jones, Nina

unread,
Oct 19, 2010, 8:50:05 AM10/19/10
to openwon...@googlegroups.com

Is this  a screenshare issue or a webcam viewer issue?

Jonathan Kaplan

unread,
Oct 19, 2010, 12:38:29 PM10/19/10
to openwon...@googlegroups.com
A little of each - the screensharer sends data to the web server, which is then read by the webcam viewer on different clients. The problem is that the clients are not reading the data fast enough, so the web server is running out of memory trying to queue the data for the slow user.
Reply all
Reply to author
Forward
0 new messages