Wednesday, September 26, 2012

Setting Environment variables and System properties for Tomcat Server


Setting Environment variables and System properties for Tomcat Server

Windows Environment:


Create a file called setenv.bat in tomcat bin directory
Example: tomacta/bin/ setenv.bat
Environment variables setting:
set <OptinName>=<option value>
Example:
set JAVA_OPTS=-Xms256m -Xmx512m -XX:MaxPermSize=256m
 System Properties Settings:
set JAVA_OPTS =-D<propertyName>=<propertyValue>
Example:
set "JRE_HOME=%CATALINA_HOME%/jre1.6.0_20/win"
Note: When you already configure some java option  again you want configure some you have to do following like this
set JAVA_OPTS=% JAVA_OPTS% -Djava.awt.headless=true

The following is example for setting multiple properties. 
if multiple properties separated by space.

set JAVA_OPTIONS=%JAVA_OPTIONS% -Duser.timezone=UTC -Duser.timezone=GMT -Dicescrum_config_location=/path/to/dir/where/i/can/write/config.groovy -Xmx512m -XX:MaxPermSize=256m



Linux Environment:


Create a file called setenv.sh in tomacat bin directory
Example: tomcat/bin/setenv.sh
Environment variables setting:
export  <OptinName>=”<option value>”
Example:
export JAVA_OPTS=”-Xms256m -Xmx512m -XX:MaxPermSize=256m” 
 System Properties Settings:
export JAVA_OPTS =”-D<propertyName>=<propertyValue>”
Example:
export JAVA_OPTS =”-Djava.awt.headless=true
Note: When you already configure some java option again you want configure some you have to do following like this
export JAVA_OPTS=”$ JAVA_OPTS -Djava.awt.headless=true"

The following is example for setting multiple properties. 
if multiple properties separated by space.

export JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"



Location: 5, Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India

20 comments :

  1. They would rather sell their home and buy a comparable home for a much lower price, and take the loss so that they can improve their cash flow situation by having a lower mortgage payment each month. flat for sale pune

    ReplyDelete
  2. Particular interviews furnish firsthand message on mart size, industry trends, ontogeny trends, capitalist landscape and outlook, etc. https://serverbrowse.com/

    ReplyDelete
  3. A lot of people are merely naturally better at debating than others. Persuasive essay writing is harder for some, and many find that they may whip something out in a flash. Think of this as trying to convince someone to talk to your reason for view. BELL TEST

    ReplyDelete
  4. A lot of people are merely naturally better at debating than others. Persuasive essay writing is harder for some, and many find that they may whip something out in a flash. Think of this as trying to convince someone to talk to your reason for view. BELL TEST

    ReplyDelete
  5. Who will utilize this model and what will they use it for? An organization may have another item for which they have to ascertain an ideal cost.property appraiser palm beach

    ReplyDelete
  6. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. benchtop environmental chamber

    ReplyDelete
  7. i love reading this article so beautiful!!great job! egypt rental property

    ReplyDelete
  8. These are the best option when it comes to wearing your favorite outfit. They surely make heads turn and can be worn even at night where the glitter surely will make your friends really appreciate them. glitter for sale

    ReplyDelete
  9. There are many real estate groups that help you find the best real estate for you and help you giving tips on maintaining the real estate to get maximum profit in future. real estate dubai

    ReplyDelete
  10. Location assumes an indispensable function in choosing property costs. Viewpoints like the offices accessible, the availability and the infrastructural changes close to the property make an effect on property costs.Calgary Realtor

    ReplyDelete
  11. To delineate this present, how about we accept a person in an enterprise possesses, state, a high rise and this organization gets a judgment against it by a bank.weblink

    ReplyDelete
  12. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! pandavpn

    ReplyDelete
  13. I can’t believe focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material without a doubt. It is one of the greatest contents. Fully Detached duplex for sale in Ibadan Nigeria

    ReplyDelete
  14. Your website is really cool and this is a great inspiring article. Apartments

    ReplyDelete
  15. Usefulness and solace increments with the legitimate course of action of home office furniture and enriching it as indicated by the kind of work you do. del mar office space for rent

    ReplyDelete
  16. It is true that, during a certain period of time, depending on the real estate market, client's desire, real estate auctions, there may be moments when a property's price drops, but not forever. Cambodia real estate

    ReplyDelete
  17. Like NordVPN, VyprVPN has successfully integrated the 翻墙VPN protocol into the service. We tested it out and were impressed with the speeds, with some locations over 300 Mbps. However, it was still beat in the NordVPN vs VyprVPN comparison in the performance category.

    ReplyDelete
  18. nice article, you just got it right. Iam providing open plots in hyderabad please have check.

    ReplyDelete
  19. B12 ought to be the "1" in the year marks we made. $B$10 ought to be an outright reference to our speculation period supposition (the information in our suspicion cell ought to be a whole number regardless of whether it is designed to peruse "a long time," Emergency Tree Service Stockton

    ReplyDelete

Recent Posts

Recent Posts Widget

Popular Posts