-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core Errors when predict online from the xgboost model with java api #163
Comments
Can you post an example script? |
Strangely, core dump happens occasionally,This is core dump gdb information: (gdb) where Corresponding to my debugging code:118 96 template |
I have no idea why this is happening. Can you upload your Java application here so that I can try running it? |
This core problem has been bothering me for a long time , it only occurs when handle lots of requests at the same time ,I'm afraid you can't reproduce it,Here is the core code: import java.nio.charset.StandardCharsets; import com.gaode.idccmnpredict.pb.FeatureOuterClass; @slf4j
} class FeatureCacheItem {
} |
I wonder if some |
This is also a point for me to consider. Maybe it's jni problem? |
Yes, that's it. C++ is using the CSRBatch object, occasionally SparseBatch has been garbaged by JVM. At first, I wonder if it's problem with this code: Thanks. |
The issue is that |
In #196, I created a separate data matrix class ( |
|
Here is the GDB information:
gdb /opt/taobao/java/bin/java --core=core-616-java-3489-1584598903
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/opt/taobao/java/bin/java -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=256m -'.
Program terminated with signal 6, Aborted.
#0 0x00007f9f7cf27277 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install ali-jdk-8.4.8-1574344.alios7.x86_64
(gdb) bt
#0 0x00007f9f7cf27277 in raise () from /lib64/libc.so.6
#1 0x00007f9f7cf28968 in abort () from /lib64/libc.so.6
#2 0x00007f9f7c81ffd5 in os::abort(bool) () from /opt/taobao/install/ajdk-8.4.8-b211/jre/lib/amd64/server/libjvm.so
#3 0x00007f9f7c9ddce3 in VMError::report_and_die() () from /opt/taobao/install/ajdk-8.4.8-b211/jre/lib/amd64/server/libjvm.so
#4 0x00007f9f7c825c32 in JVM_handle_linux_signal () from /opt/taobao/install/ajdk-8.4.8-b211/jre/lib/amd64/server/libjvm.so
#5 0x00007f9f7c81bd13 in signalHandler(int, siginfo*, void*) () from /opt/taobao/install/ajdk-8.4.8-b211/jre/lib/amd64/server/libjvm.so
#6
#7 0x00007f9e0cbba448 in unsigned long (anonymous namespace)::PredictBatch_treelite::CSRBatch(treelite::CSRBatch const*, bool, unsigned long, unsigned long, void*, unsigned long, unsigned long, unsigned long, float*) [clone .isra.217] ()
from /tmp/libtreelite4j9026278753296637105.so
#8 0x00007f9e0cbc6f71 in unsigned long treelite::Predictor::PredictBatchBase_treelite::CSRBatch(treelite::CSRBatch const*, int, bool, float*) () from /tmp/libtreelite4j9026278753296637105.so
#9 0x00007f9e0cbcbb75 in TreelitePredictorPredictBatch () from /tmp/libtreelite4j9026278753296637105.so
#10 0x00007f9e0cbb4caa in Java_ml_dmlc_treelite4j_TreeliteJNI_TreelitePredictorPredictBatch ()
from /tmp/libtreelite4j9026278753296637105.so
#11 0x00007f9f6733f79f in ?? ()
#12 0x0000000000000000 in ?? ()
The text was updated successfully, but these errors were encountered: