cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

jvmarg/JAVA_OPTS Configuration

268
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Pietro Angelo Corrao on 05-09-2013 06:00:50 AM
Hi everybody,

I need to configure some jvm properties and cannot find documentations that explain how to configure such properties in CVP/VXML context.
i founded and old post in this community where is expained that to edit and configure jvm properties on the server i have to edit the following registry key:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\VXMLServer\Parameters\Java
Such key is not present in my server but i have been able to find the following one instead:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\VXMLServer\Parameters\Java
i would like to ask you if it's correct to edit such registry K to manage my jvm args.
One more question i have is...How can i manage the jvm properties during the app. developing  in Cisco Unified Call Studio running in debug my app?

Thanks for you Help,

Pietro

Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Hemal Mehta on 05-09-2013 07:31:41 AM
Yes, you can set under options
  • HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\VXMLServer\Parameters\Java
  • For studio you can set in the eclipse.ini file

Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Pietro Angelo Corrao on 05-09-2013 11:33:15 AM
Hemal Mehta:
Yes, you can set under options
  • HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\VXMLServer\Parameters\Java
  • For studio you can set in the eclipse.ini file


50% ok 50% ko  the jvm properties configured in the Reg.K works fine and they are accessible from the IVR App.
But the properties configured in the eclipse.ini are yes present in the eclips configuration details but they are not visible/available for the IVR App....

Any other Idea?

Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Hemal Mehta on 05-09-2013 11:38:38 AM
The eclipse ones apply to Studio only.   The CVP VXML server one above is the correct one.  What else do you want to change ? What is intention ?

Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Pietro Angelo Corrao on 06-09-2013 04:10:12 AM
Hemal Mehta:
The eclipse ones apply to Studio only.   The CVP VXML server one above is the correct one.  What else do you want to change ? What is intention ?
My aim is to replicate and test the overall IVT app. in the development env. so using the call studio debug. I use the jvm properties to setup my app configuration references and to configure the third party API i use in my prf (Apache CXF and Common Logging). As i wrote everything work fine deployed in the server but in my local env.(call studio) such configuration doesnt work and it makes slower and develop process as you can immage. please finde below and example of what i did to configure and to verify such configuration:
  • eclupse.ini: -vmargs -Xms128m-Xmx512m -XX:MaxPermSize=1024m -Dmyapp.conf.file=C:/Bper/conf/environment.properties -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Djava.util.logging.config.file=/conf/logging.properties 
  • Source code to verify the conf.:
public class StartApplicationImpl implements StartApplicationInterface {
     Logger logger = Logger.getLogger(StartApplicationImpl.class);
     public void onStartApplication(ApplicationStartAPI arg0)throws AudiumException {
           logger.debug("StartApplicationImpl start");
           try {
                Set<Object> appo = System.getProperties().keySet();
                for (Object object : appo) {
                   logger.debug(object); ////////// Logging all the sys prop. i cant see that one configured in the eclipse.ini Running the code with the Call Studio Debug...It works fine deployed to the server
                }
           } catch (Exception e) {
                logger.error("StartApplicationImpl Exception: ", e);
           }
      }
 }


Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Hemal Mehta on 06-09-2013 03:29:02 PM
Try running your java code as a java app and see if the logging works correctly from within studio.  Do not use debug studio.  Please check and see what happens. 

Subject: RE: jvmarg/JAVA_OPTS Configuration
Replied by: Pietro Angelo Corrao on 09-09-2013 03:41:12 AM
Did It already with a simple class with a main method and the result is the same...not present in the list that my code print and if i try to retrieve directly the properties the result is null.
Please find below the eclipse.ini:
-vmargs-Xms128m-Xmx512m-XX:MaxPermSize=1024m-Dbper.conf.file=C:/Bper/conf/environment.properties -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Djava.util.logging.config.file=C:/Bper/conf/logging.properties 

and the main method code:
try {
  Set<Object> appo = System.getProperties().keySet();
  for (Object object : appo) {
    System.out.println(object);
  }    
  System.out.println("### "+System.getProperty("bper.conf.file")+" ###");    
  System.out.println("### "+System.getProperty("org.apache.cxf.Logger")+" ###");    
  System.out.println("### "+System.getProperty("java.util.logging.config.file")+" ###");
} catch (Exception e) {// TODO Auto-generated catch blocke.printStackTrace();}
Thanks,

Pietro
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards