This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Nov 14, 2013, 10:47 PM
4 Posts
topic has been resolvedResolved

How to deploy vmarg.Xmx and co automatically ?

  • Category: Install,Notes Client,Performance
  • Platform: Windows
  • Release: 9.0
  • Role: Administrator
  • Tags:
  • Replies: 3
Hi,

I upgraded about 200 Notes 9 standard client whitout tuning jvm.properties. I'm searching a way to custom the jvm.properties file automatically. How did you do that ?

Regards,
Olivier
Nov 17, 2013, 4:23 AM
8 Posts
customize jvm.properties
Hi Olivier,

I think you can modify vmarg.Xmx of deploy\jvm.properties file in the Notes 9 installation package. After upgrade to Notes 9, the new vmarg.Xmx property will be written into NOTESDIR\framework\rcp\deploy\jvm.properties. But it will also overwrite the original jvm.properties file. So if you have any customized porperties in previous jvm.properties, you need to merge them in the file of Notes 9 installation package.


Hope this helps.


Qi Ming
Nov 19, 2013, 9:35 AM
4 Posts
Thx for your reply. This file is overwritten when I apply an interim fix so I can't use your solution.

I coded a .bat to install automatically Notes 9 and IF3, so I have put some extra code to change the jvm.properties like that  :


FOR /F "usebackq tokens=1,* delims==" %%a IN ("%JVMPROPERTIESFILENAME%") DO (
        IF "%%b"=="" (
                echo %%a>> "%JVMPROPERTIESFILENAMETMP%"
        ) ELSE (
                IF "%%a"=="vmarg.Xmx" (
                        ECHO %DATE% %TIME% %%a=%%b vers %%a=-Xmx1024m
                        echo %%a=-Xmx768m>> "%JVMPROPERTIESFILENAMETMP%"
                ) ELSE (
                        IF "%%a"=="vmarg.Xms" (
                                ECHO %DATE% %TIME% %%a=%%b vers %%a=-Xms256m
                                echo %%a=-Xms256m>> "%JVMPROPERTIESFILENAMETMP%"
                        ) ELSE (
                                IF "%%a"=="vmarg.Xmca" (
                                        ECHO %DATE% %TIME% %%a=%%b vers %%a=-Xmca512k
                                        echo %%a=-Xmca512k>> "%JVMPROPERTIESFILENAMETMP%"
                                ) ELSE (
                                        echo %%a=%%b>> "%JVMPROPERTIESFILENAMETMP%"
                                )
                        )
                )
        )
)

DEL /Q "%JVMPROPERTIESFILENAME%"
MOVE /Y "%JVMPROPERTIESFILENAMETMP%" "%JVMPROPERTIESFILENAME%"
Nov 18, 2013, 2:47 PM
326 Posts
Try this

While your notes client is up  try copying a good copy of the file to the correct location.  Close down the client and check the to make sure the new file is still intact ( did not get over ridden by closing down of notes client).  If all is good you can email all you users a button that would with have code to copy the file over from a share or open a file for output an do  print statements of all the lines needs in the new file.

 

At the end of you code you might want to instruct the user to reboot the pc.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal