libfaketime icon indicating copy to clipboard operation
libfaketime copied to clipboard

BUG BUG!!!!!!

Open peijs opened this issue 1 year ago • 6 comments

I use env LD-PRELOAD=/var/local/lib/faketime/libfaketime. so. 1 FAKETIME="2023-05-01 17:31:00" nohup java server jar test. jar&to run, which consumes a very high amount of CPU.. What's going on here.. Or how to solve it

peijs avatar Oct 18 '24 03:10 peijs

@peijs Please consider to improve the quality of your bug report.

Some good guidelines how to write a bug report can be found here:

https://github.com/OpenSC/OpenSC/wiki/How-to-write-a-good-bug-report

nine avatar Oct 18 '24 05:10 nine

The system environment I am using is Ubuntu 20.04.2 LTS and CentOS 7.9, with JDK version 1.8. When running env LD-PRELOAD=/var/local/lib/faketime/libfaketime. so. 1 FAKETIME="2023-05-01 17:31:00" nohup Java server jar test. jar&, the CPU usage is noticeably high.. If you directly run java - jar test. jar, everything will be normal.. How to solve it

peijs avatar Oct 18 '24 05:10 peijs

cf. https://github.com/OpenSC/OpenSC/wiki/How-to-write-a-good-bug-report#title

The title should describe the problem as best as possible. Remember that the title is read more often than any other part of the bug report.

nine avatar Oct 21 '24 05:10 nine

@88

peijs avatar Oct 22 '24 06:10 peijs

libfaketime's README has a few points about running Java programs. Do none of the settings described there work?

wolfcw avatar May 24 '25 08:05 wolfcw

-on os centos79

--faketime verison 0.9.10-0.9.11 make test fail,hang when CLOCK_MONOTONIC test ,cannot go ok with -DFORCE_MONOTONIC_FIX ,or add -DFORCE_PTHREAD_NONVER more

the java application start for a long time ,100% cpu used

--faketime verison 0.9.9

make test fail ,hang when CLOCK_MONOTONIC test ,test ok with -DFORCE_MONOTONIC_FIX but the java application also start for a long time ,100% cpu used so i skip make test ,no change to makefile ,then the java application run nomal

enderwsp avatar Jun 03 '25 06:06 enderwsp