Code note (5): Code note

Source: Internet
Author: User

Code note (5): Code note

1.

Obtain the Client ip Address: Request. getRemoteAddr ()

2.

Solve the pemnen gence problem of myeclipse:

Find myeclipse. ini in the myeclipse installation directory:

-Vmargs

-Xmx2048m

-XX: MaxPermSize = 1024 m

-XX: ReservedCodeCacheSize = 256 m

-Dosgi. nls. warnings = ignore

If the above method is not feasible:

Go to myeclipse and configure jdk for the corresponding web server:

Windows ~ Preferences ~ Myeclipse ~ Servers ~ Weblogic ~ Weblogic12 ~ JDK:

-Xms256m-Xmx512m-XX: CompileThreshold = 8000-XX: PermSize = 48 m-XX: MaxPermSize = 128 m-Xverify: none-da

Increase the memory size.

3.

Chrome Plugin:

Chrome: // extensions

Developer Mode

1> in Chrome (or another browser with this kernel), open chrome: // extensions/

Or set-> Extended Program

2> drag and drop extension. crx In the compressed package to this page.

3>. Install the SDK as prompted.

4.

How to delete an oracle instance (or client) after it is installed:

Go to the installation directory product/xxxhome of oracle, find the deinstall folder, and execute deinstall. bat (if administrator permission is required, right-click the Administrator permission to run it)

5.

Run windows/system32/cmd.exe on the system disk to open the doc command window. You can handle the running of some jar packages with administrator privileges.

6.

The not null constraint in the database. when inserting data, it cannot be null or '', but it can be''. (You can add spaces in the middle of the string)

7.

Linux Command:

Rz: Select File Upload

Lz Select File Upload

Ps-ef | grep weblogic view weblogic process number

Ps-ef | grep java view java Process number

Tail-f xxx. log view log file (to the bottom)

Pkill-9 process number forcibly kills the process

In fact, kill sends a signal to a process id. The signal sent by default is SIGTERM, while the signal sent by kill-9 is SIGKILL, that is, exit. The exit signal is not blocked by the system, so kill-9 can successfully kill the process.





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.