Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Java: Общие вопросы > hotspot


Автор: Entry_N3 8.7.2007, 16:51
Что есть hotspot? 

(на google не ссылаться)

Автор: ekr 8.7.2007, 16:53
название sun-овской jvm

Автор: Entry_N3 8.7.2007, 18:47
Цитата(ekr @ 8.7.2007,  16:53)
название sun-овской jvm

И все?   smile 


А как же возможность при отладке "закидывать" код на сервер для его непосредственного изменения?

Автор: ekr 8.7.2007, 18:51
"Горячая" замена кода при отладке - всего лишь одна из возможностей этой jvm. И то не всех весий )
К названию jvm не имеет отношения.

Автор: LSD 9.7.2007, 12:01
HotSpot - это название технологии компиляции на лету. Правда сейчас в основном употребляется - JIT.

Автор: Entry_N3 28.7.2007, 13:08
LSD, а как пользоваться технологией компиляции на лету? Знаю, что можно программировать с этой технологией, чтобы не компилировать заново и не перезапускать Tomcat (не reload). Как в Eclipse?

Автор: chand0s 28.7.2007, 16:14
Цитата(Entry_N3 @ 28.7.2007,  11:08)
а как пользоваться технологией компиляции на лету? Знаю, что можно программировать с этой технологией, чтобы не компилировать заново и не перезапускать Tomcat (не reload). Как в Eclipse?

Я думаю вы путаете понятия.
Под JIT подразумевается то, что байт-код, оттранслированный в машинный код (с оптимизацией и т.д.) при выполнении приложения будет храниться виртуальной машиной в памяти для дальнейших вызовов.
То есть - повторное обращение к коду (например - вызов метода) не требует его повторной трансляции.

Автор: Entry_N3 28.7.2007, 16:47
chand0s, я про hotspot, подмену кода налету.

Автор: math64 28.7.2007, 21:32
Цитата(Entry_N3 @  28.7.2007,  16:47 Найти цитируемый пост)
я про ... подмену кода налету.

Это недавно обсуждалось, см. предыдущие темы (используется класс ClassLoader).

Автор: LSD 30.7.2007, 12:56
Цитата(Entry_N3 @  28.7.2007,  14:08 Найти цитируемый пост)
а как пользоваться технологией компиляции на лету? Знаю, что можно программировать с этой технологией, чтобы не компилировать заново и не перезапускать Tomcat (не reload). Как в Eclipse?

HotSpot тут ни при чем.
А что касается Tomcat:
Цитата
It is possible to deploy web applications to a running Tomcat server. 

If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new .WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration. 

autoDeploy set to "true" and a running Tomcat allows for:

  • Deployment of .WAR files copied into the Host appBase.
  • Deployment of exploded web applications which are copied into the Host appBase. 
  • Re-deployment of a web application which has already been deployed from a .WAR when the new .WAR is provided. In this case the exploded web application is removed, and the .WAR is expanded again. Note that the explosion will not occur if the Host is configured so that .WARs are not exploded with a unpackWARs attribute set to "false", in which case the web application will be simply redeployed as a compressed archive. 
  • Re-deployment of a web application if the /WEB-INF/web.xml file (or any other resource defined as a WatchedResource) is updated. 
  • Re-deployment of a web application if the Context Descriptor file from which the web application has been deployed is updated. 
  • Re-deployment of a web application if a Context Descriptor file (with a filename corresponding to the Context path of the previously deployed web application) is added to the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. 
  • Undeployment of a web application if its document base (docBase) is deleted. Note that on Windows, this assumes that anti-locking features (see Context configuration) are enabled, otherwise it is not possible to delete the resources of a running web application.


Автор: Entry_N3 16.9.2007, 11:01
LSD,  smile 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)