How to deploy jrebel to myeclipse or eclipse

Source: Internet
Author: User
Tags xms

1. Installation Method of myeclipse:

Jrebel 5 for myeclipse (8-10
) Configuration

1. Download jrebel5.0 and decompress it to the specified directory.

2. Download the cracked jrebel. jar and replace the original jrebel. jar to crack jrebel.

3. Download The jrebel for myeclipse plug-in. Create the myplugin directory in the root directory of myeclipse and then create the jrebel directory. Set jrebel
Decompress features and Plugins in the for myeclipse plug-in package to the jrebel directory. In myeclipse
Create a TXT file in the dropins folder under the blue edition 8.5 directory.

Path = x: .. \ myplugin \ jrebel (absolute path of jrebelfor myeclipse plug-in ),

Save and rename it jrebel. Link. Restart myeclipse

4. Configure jrebel in myeclipse. Select jrebel under window> preferences, and specify the jrebel. Jar path by clicking "Browse" and selecting jrebel. jar. Then fill in the estimated time for re-deployment. (You must enter it here or you will not be able to do so)

Window-> preference-> tomcat-> tomcat6.x-> JDK page, add the following parameters under optional Java VM arguments
-Noverify
-Javaagent:. \ jrebel. Jar modify the correct jrebel. Jar path (absolute path) here)

5. Generate jrebel. xml. Right-click the project, select jrebel-> generaterebel. xml..., and select the Save path,

View the saved rebel. XML format as follows:

<? Xmlversion = "1.0" encoding = "UTF-8"?>
<Application xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://www.zeroturnaround.com" xsi: schemalocation = "http://www.zeroturnaround.comhttp: // www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

<Classpath>
<Dir name = "X:/xxxx/Web root/WEB-INF/classes">
</Dir>
</Classpath>

<Web>
<Link Target = "/">
<Dir name = "X:/xxxx/webroot">
</Dir>
</Link>
</Web>

</Application>

6. Now you can start Tomcat under myeclipse. The following information is printed at startup, indicating that the attack was successful.

[11:22:57] ##################################### #########################
[11:22:57]
[11:22:57] jrebel 5.0.0 (201206080930)
[11:22:57] (c) Copyright zeroturnaround ou, Estonia, Tartu.
[11:22:57]
[11:22:57] Over the last 1 days jrebel prevented
[11:22:57] At least 0 redeploys/restarts saving you about 0hours.
[11:22:57]
[11:22:57] This product is licensed to unlimited
[11:22:57] for fun! Unlimited! Enjoy!
[11:22:57]
[11:22:57] the following plugins are disabled at themoment:
[11:22:57] * Apache MyFaces plugin (set-Drebel.myfaces_plugin = true to enable)
[11:22:57] * click plugin (set-drebel. click_plugin = true toenable)
[11:22:57] * jruby plugin (set-drebel. jruby_plugin = true toenable)
[11:22:57] * Jersey plugin (set-drebel. jersey_plugin = true toenable)
[11:22:57] * Oracle ADF core plugin (set-Drebel.adf_core_plugin = true to enable)
[11:22:57] * Oracle ADF faces plugin (set-Drebel.adf_faces_plugin = true to enable)
[11:22:57] * seam-wicket plugin (set-Drebel.seam_wicket_plugin = true to enable)
[11:22:57] * webobjects plugin (set-drebel. webobjects_plugin = trueto enable)
[11:22:57]
[11:22:57] ##################################### #########################

 

 

Java. Lang. outofmemoryerror: Solution to the permgen space problem

Exception in thread "btpool0-1" Java. Lang. outofmemoryerror:Permgen Space...

In the past, when using myeclipse, we often encountered permgen space problems. The solution was simply to change the configuration file of myeclipse and increase its running speed.

Memory applied for by JVM. But this time the program is started by javarebel...

Reference link:

Http://www.zeroturnaround.com/jrebel/faq,

Modify the javarebel parameters as follows:

-Xmx512m-xms512m-XX: maxpermsize = 1024 m

For detailed explanations of each configuration, refer:

: Http://hi.baidu.com/futily/blog/item/cffb330fb0c22ee4ab6457fc.html

Heap memory allocation:

-XMS JVMThe initial allocated memory is-XMSThe default value is physical memory.1/64;

-Xmx JVMThe maximum memory allocated-XmxThe default value is physical memory.1/4;

The default idle heap memory is smaller40%,JVMIt will increase-XmxThe maximum limit; the free heap memory is greater70%,JVMWill decrease the heap-XMS.

Therefore, the server is generally set-XMS and-xmxEqual to avoidGCThen adjust the heap size.

 

Non-heap memory allocation

-XX: permsize JVMUse-XX: permsizeSet the initial non-heap memory value. The default value is physical memory.1/64;

-XX: maxpermsizeByXX: maxpermsizeSet the maximum non-heap memory size. The default value is physical memory.1/4.

 

Special notes

Parameter

-XMSThe value must be smaller-Xmx,

-XX: permsizeThe value must be smaller-XX: maxpermsize;
-XmxAnd-XX: maxpermsizeThe sumJVMMaximum memory limit, such as the maximum memory limit of the current operating system or the actual physical memory.

 

2. The eclipse installation method is similar to that of myeclipse, but does not require the myeclipse plug-in,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.