Hi Pratyush,

Checkpointing of files and Java is supported out of the box. There are
various runtime options (plugins) that you can use to modify the default
behavior according to your requirements. I'm unable to reproduce the issue
that you have reported with your example locally. I'm using the latest DMTCP
source from Github. Here's what I did:

  $ javac AppMain.java
  $ dmtcp_launch java AppMain
  # Checkpoint and kill the application
  $ dmtcp_restart ckpt_java_*.dmtcp

The error messages you are getting have nothing to do with checkpointing
of open files. It seems like your application has some connections to
other processes that are not running under DMTCP. Could you please verify
if that's the case? Also, could you please try running with the latest
release?

Thanks,
Rohan

On Tue, Apr 26, 2016 at 11:57:30AM +0530, Pratyush Patel wrote:
> Hello,
> 
> I am using DMTCP to try and checkpoint a simple Java program, source
> of which can be found at http://pastie.org/10801783.
> 
> In the program input.txt is a large file which contains several lines
> which I am trying to print. I am checkpointing the program by sending
> the signal to checkpoint externally through the dmtcp_coordinator.
> 
> Although, I expected the checkpointing process to work with the open
> file descriptor, it appears that dmtcp is unable to checkpoint the
> program properly, and results in some error messages like:
> 
> [43000] NOTE at timerlist.cpp:107 in removeStaleClockIds;
> REASON='Removing stale clock'
>      staleClockIds[i] = -100842
> [40000] WARNING at kernelbufferdrainer.cpp:125 in onTimeoutInterval;
> REASON='JWARNING(false) failed'
>      _dataSockets[i]->socket().sockfd() = 11
>      buffer.size() = 140
>      WARN_INTERVAL_SEC = 10
> Message: Still draining socket... perhaps remote host is not running
> under DMTCP?
> [40000] WARNING at kernelbufferdrainer.cpp:125 in onTimeoutInterval;
> REASON='JWARNING(false) failed'
>      _dataSockets[i]->socket().sockfd() = 11
>      buffer.size() = 140
>      WARN_INTERVAL_SEC = 10
> Message: Still draining socket... perhaps remote host is not running
> under DMTCP?
> 
> In case it matters, I am using Ubuntu 15.10 with 4.3.0-040300-generic kernel.
> I am also using the latest dmtcp source code available in Ubuntu repository.
> 
> Could anyone please let me know why this happens and whether there is
> a way to get it working?
> 
> Thanks,
> Pratyush Patel
> 
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Dmtcp-forum mailing list
> Dmtcp-forum@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to