Java

Java

Java

Topics on Semeru (Java) on IBM Z

 View Only
  • 1.  JZOS Batch Launcher, Spring Boot, Multivolume STDOUT cut

    Posted 10 days ago

    Hello,

      I found out that in case of multivolume STDOUT, only the "starting" messages are visible, all other output is gone. 

    For example, simple SB application from SpringInitializr with web 

    Start JCL:

    //JVM      EXEC PGM=JVMLDM17,REGION=0M,PARMDD=PARMS           
    //STEPLIB  DD DSN=<HLQ>.IBM.JZOS.LOADLIB,DISP=SHR             
    //SYSPRINT DD SYSOUT=*,RECFM=VB,LRECL=32756                   
    //PARMS    DD *,SYMBOLS=(JCLONLY)                             
    / -jar /zos-0.0.1-SNAPSHOT.jar                       
    //SYSOUT   DD SYSOUT=*,RECFM=VB,LRECL=32756                   
    //*STDOUT   DD SYSOUT=*,RECFM=VB,LRECL=32756                  
    //STDOUT   DD  DISP=(NEW,CATLG),                              
    //             RECFM=VB,LRECL=32756,                          
    //             DSN=<USER>.TMP.STDOUT.SIMPLE.MULT,             
    //             SPACE=(TRK,(15,75),RLSE),UNIT=(SYSDA,4)        
    //*            SPACE=(TRK,(15,75),RLSE),UNIT=SYSDA            
    //STDERR   DD SYSOUT=*,RECFM=VB,LRECL=32756                   
    //CEEDUMP  DD SYSOUT=*                                        
    //ABNLIGNR DD DUMMY                                           
    //STDENV   DD *,SYMBOLS=(JCLONLY)                            
    ...

    Output after "stop" (/P ...) is the following:

    Starting ZosApplication v0.0.1-SNAPSHOT using Java 17.0.19 with PID 84018896
    No active profile set, falling back to 1 default profile: "default"                     
    Tomcat initialized with port 36000 (http)                                               
    Starting service [Tomcat]                                                               
    Starting Servlet engine: [Apache Tomcat/11.0.22]                                        
    Root WebApplicationContext: initialization completed in 732 ms                          
    Tomcat started on port 36000 (http) with context path '/'                               
    Started ZosApplication in 1.676 seconds (process running for 2.19)                      
    ************************************************************************ Bottom of Data 

    In case of single volume or "SYSOUT=*" there are shutdown messages:

    Starting ZosApplication v0.0.1-SNAPSHOT using Java 17.0.19 with PID 50464415 
    No active profile set, falling back to 1 default profile: "default"          
    Tomcat initialized with port 36000 (http)                                    
    Starting service [Tomcat]                                                    
    Starting Servlet engine: [Apache Tomcat/11.0.22]                             
    Root WebApplicationContext: initialization completed in 687 ms               
    Tomcat started on port 36000 (http) with context path '/'                    
    Started ZosApplication in 1.642 seconds (process running for 2.178)          
    Commencing graceful shutdown. Waiting for active requests to complete        
    Graceful shutdown complete                                                   
    ***************************** BOTTOM OF DATA **************************

    Is this a limitation of JZOS or Spring boot?

    Thank you.

     



    ------------------------------
    Sergey Korzhevsky
    Senior Software Engineer in Test
    Rocket Software
    ------------------------------


  • 2.  RE: JZOS Batch Launcher, Spring Boot, Multivolume STDOUT cut

    Posted 3 days ago

    Hi Sergey, our team is currently investigating your issue and we will get back to you soon.



    ------------------------------
    Yiqun Cheng
    ------------------------------



  • 3.  RE: JZOS Batch Launcher, Spring Boot, Multivolume STDOUT cut

    Posted 3 days ago

    Hi Sergey, 

    Based on our understanding, the missing messages appear to be generated by the application itself:

    Commencing graceful shutdown. Waiting for active requests to complete
    Graceful shutdown complete
    

    To help with further analysis, could you provide additional details about how these messages are generated?

    Specifically:

    • Which part of the application code produces these messages?
    • Are they generated from a shutdown hook or another shutdown-related code path?
    • Is there a way to verify whether the code responsible for printing these messages was executed during the affected occurrence?
    • Alternatively, is it possible that the application followed a different control flow in this case, resulting in these messages not being logged?

    Any information about the implementation of these log messages or the application's shutdown logic would help us better understand what occurred.



    ------------------------------
    Yiqun Cheng
    ------------------------------



  • 4.  RE: JZOS Batch Launcher, Spring Boot, Multivolume STDOUT cut

    Posted 3 days ago
      |   view attached

    Hi Yiqun,

       In the original message, i provided link to Spring Boot initializer with Spring Web component, this application can show the problem. I'll attach it here as well, but i assume that from security standpoint, link to well-known site is better. 

    You need to start it and then stop by sdsf "/P" command to produce shutdown messages.



    ------------------------------
    Sergey Korzhevsky
    Senior Software Engineer in Test
    Rocket Software
    ------------------------------

    Attachment(s)

    zip
    zos.zip   14 KB 1 version