In the case of an error or unexpected behavior of the Java Startup and Control Framework, it is important to check the work directory of the AS Java instances (PAS/AAS) under the following path: /usr/sap/<SID>/J<instance no.>/work.
As a kind of Best Practice, sort the files descending by date and time stamp and check the content of the most up-to-date log and trace files for errors and warnings. The same strategy should be taken into account also for problems regarding the Central Services Instance (SCS). Always remember, there are lots of potential problems and error situations. So, there is a wide range of root causes. Log and trace files will help the administrator analyzing the situation by pointing to a hardware (lack or defective) or software (missing or incorrect version) based problem, as well as identifying erroneous parametrization. Some of the most important log and trace files are listed below.
Important Log and Trace Files:
dev_jstart
dev_<node name> (e.g. dev_server0, dev_icm)
jvm_<node name>.out (e.g. jvm_bootstrap.out)
std_server<no.>.out (e.g. std_server1.out)
log_bootstrap<no.>.log
stderr<no.> (e.g. stderr1)
sapstart.log, sapstart<no.>.trc, sapstartsrv.log
available.log

Note
Also take care about the SAP Central Services (SCS) instance. Use the following path to access the work directory:/usr/sap/<SID>/SCS<instance_number/work
The trace and log files are stored in the work directory of an instance. This directory is called /usr/sap/<SID>/J<instance_number>/work (UNIX) and analogously in the Microsoft Windows environment.
dev_jstart is the trace file for the Instance Controller. It is the most important trace file for problem messages when starting AS Java. Current messages are written at the end of the file.
dev_<node name> is the trace file for the Server Processes, the ICM and further processes. The trace file dev_<node name> is written for each process started and thus for each ICM and server process.
jvm_<node name>.out is the output file for the Java Virtual Machine (JVM). Each node (except ICM) represents a Java node such as a bootstrap or a server process and therefore a JVM. The output of a JVM is forwarded to the file jvm_<node name>.out in the work directory of a Java instance.
std_server<X>.out is the default output file for the started managers and services of the corresponding nodes, one of the most common used files for troubleshooting the framework startup of a Server Process.
log_bootstrap<number>.log is the log file for the synchronization of binary data in the Java database with the local file system, reading the Java instance description from the Java database and updating the instance.properties file.
stderr<number> are created by the sapstartsrv process during the start of the instance. The instance processes that are started by the sapstartsrv write to the individual STDERR<n> files, depending on the sequence in which they are listed in the instance profile.
available.log displays the instance availability.
For most of the log files listed above, you will also find log files in the work directory with the ending .<no.>, with older versions of the files, which can also often be used for troubleshooting. In the start process of an instance, the files mentioned above are rewritten and the file names are changed from x.<no.> to x.<no.+1>. The number of the old versions complies with the parameter jstartup/keep_old_logfiles (default = 2).
Beside the node names for ICM and server processes there are also developer traces for data collections (datcol). In case of start problems, the data collector provides information about the problem and writes to the developer traces.
This is only available in english

The developer traces from the work directory can also be evaluated easily with the SAP MC (or SAP MMC). See the above figure. The analysis displays the error messages from the dev_<...> files (as well as other messages from the log and trace files that you will get to know in the Monitoring unit). Warnings or other messages from the dev_<...> files may also be displayed.