conf/application.conf 파일의 jpda.port 를 지정해야 특정 포트에서 jpda.port에서 실행할 수 있다. command line에서 properties 등록으로는 jpda.port 변경이 되지 않는다. 


jpda.port=8010



디폴트 혹은 설정된 jpda port값을 지정했다 하더라도..  play run 이용하면서 비어있는 포트로 변경될 수 있다. 



Listening for transport dt_socket at address: 54489



play 실행시 python 데몬과 java 데몬 두개가 뜨는데. shutdown, startup 하면서 port 이슈를 최대한 적게 하려는 시도(??) 가 아니었을까 하는 생각이 들었다.  



 $ ps -ef | grep play

  501 72458  9133   0 12:00PM ttys002    0:00.10 python /mydev/util/story-play-1.2.5.3/play run

  501 72459 72458   0 12:00PM ttys002    0:02.00 /usr/bin/java -javaagent:/mydev/util/story-play-1.2.5.3/



자세한 정보는 document에 있다. 


~ If the application is in DEV mode, a JPDA session is automatically opened on the port specified by the 

~ conf/application.conf file's jpda.port property (defaulting to 8000). If the JPDA port is already in use, 

~ another available port is automatically chosen.

~

~ Options:

~ ~~~~~~~~~

~ -f: 

~ Disable the JPDA port checking and force the jpda.port value.


Posted by '김용환'
,